diff options
| author | Anchor <none@none> | 2019-05-08 17:37:05 -0600 | 
|---|---|---|
| committer | Nat Goodspeed <nat@lindenlab.com> | 2020-03-25 18:39:20 -0400 | 
| commit | e039f5e29ee02c37d2febc21b492a0d425661897 (patch) | |
| tree | 561f82dbc04fcba13992ab777928551865cfac30 | |
| parent | 0ed3724c95eb8d3c1daf50657d53d68641d576df (diff) | |
[DRTVWR-476] - legacy_stdio_definitions shld be the last library linked
| -rw-r--r-- | indra/cmake/LLAddBuildTest.cmake | 4 | ||||
| -rw-r--r-- | indra/cmake/LLCommon.cmake | 4 | ||||
| -rw-r--r-- | indra/newview/CMakeLists.txt | 4 | 
3 files changed, 8 insertions, 4 deletions
diff --git a/indra/cmake/LLAddBuildTest.cmake b/indra/cmake/LLAddBuildTest.cmake index ee6396e473..983b0bc3a9 100644 --- a/indra/cmake/LLAddBuildTest.cmake +++ b/indra/cmake/LLAddBuildTest.cmake @@ -208,6 +208,10 @@ FUNCTION(LL_ADD_INTEGRATION_TEST      ${PTHREAD_LIBRARY}      ) +  if (WINDOWS) +      list(APPEND libraries legacy_stdio_definitions) +  endif (WINDOWS) +    # Add test executable build target    if(TEST_DEBUG)      message(STATUS "ADD_EXECUTABLE(INTEGRATION_TEST_${testname} ${source_files})") diff --git a/indra/cmake/LLCommon.cmake b/indra/cmake/LLCommon.cmake index f56d1811d1..8900419f9b 100644 --- a/indra/cmake/LLCommon.cmake +++ b/indra/cmake/LLCommon.cmake @@ -33,10 +33,6 @@ else (LINUX)          ${BOOST_SYSTEM_LIBRARY} )  endif (LINUX) -if (WINDOWS) -      list(APPEND LLCOMMON_LIBRARIES legacy_stdio_definitions) -endif (WINDOWS) -  set(LLCOMMON_LINK_SHARED OFF CACHE BOOL "Build the llcommon target as a static library.")  if(LLCOMMON_LINK_SHARED)    add_definitions(-DLL_COMMON_LINK_SHARED=1) diff --git a/indra/newview/CMakeLists.txt b/indra/newview/CMakeLists.txt index 45f4cb269c..3ba6767082 100644 --- a/indra/newview/CMakeLists.txt +++ b/indra/newview/CMakeLists.txt @@ -1977,6 +1977,10 @@ endif (WINDOWS)  # dumped into the target binary and runtime lookup will find the most  # modern version. +if (WINDOWS) +      list(APPEND LLAPPEARANCE_LIBRARIES legacy_stdio_definitions) +endif (WINDOWS) +  target_link_libraries(${VIEWER_BINARY_NAME}      ${PNG_PRELOAD_ARCHIVES}      ${ZLIB_PRELOAD_ARCHIVES}  | 
