diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-23 14:11:44 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-11-23 14:11:44 +0300 |
commit | 920525c2164973ac029ba015a3cbcb3b7b119317 (patch) | |
tree | 8e106e9a0856c4564cca346f42343d5865d88241 | |
parent | 29f75dd7b8a6fae826082c035c99c089c2dc2954 (diff) | |
parent | 956e58679ce6f381e4f069ba6c0628dc145083c4 (diff) |
Merge branch 'master' into blender2.8
-rw-r--r-- | build_files/cmake/macros.cmake | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/build_files/cmake/macros.cmake b/build_files/cmake/macros.cmake index 3941f08346e..d1dbe388517 100644 --- a/build_files/cmake/macros.cmake +++ b/build_files/cmake/macros.cmake @@ -370,6 +370,11 @@ function(setup_liblinks set(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${PLATFORM_LINKFLAGS}" PARENT_SCOPE) set(CMAKE_MODULE_LINKER_FLAGS_DEBUG "${CMAKE_MODULE_LINKER_FLAGS_DEBUG} ${PLATFORM_LINKFLAGS_DEBUG}" PARENT_SCOPE) + # jemalloc must be early in the list, to be before pthread (see T57998) + if(WITH_MEM_JEMALLOC) + target_link_libraries(${target} ${JEMALLOC_LIBRARIES}) + endif() + target_link_libraries( ${target} ${PNG_LIBRARIES} @@ -485,9 +490,6 @@ function(setup_liblinks ) endif() endif() - if(WITH_MEM_JEMALLOC) - target_link_libraries(${target} ${JEMALLOC_LIBRARIES}) - endif() if(WITH_MOD_CLOTH_ELTOPO) target_link_libraries(${target} ${LAPACK_LIBRARIES}) endif() |