diff options
author | Alon Zakai <alonzakai@gmail.com> | 2016-05-07 20:01:20 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2016-05-07 20:01:20 -0700 |
commit | da1b3b84f04113d5ea3b05f21dd30dca0e113ade (patch) | |
tree | 39d121ece6d9f09272ff5e434faa8fdc992831ec | |
parent | 9c9fb503a8a5ffce9eae4b48cce4b06d41146fc1 (diff) | |
download | binaryen-da1b3b84f04113d5ea3b05f21dd30dca0e113ade.tar.gz binaryen-da1b3b84f04113d5ea3b05f21dd30dca0e113ade.tar.bz2 binaryen-da1b3b84f04113d5ea3b05f21dd30dca0e113ade.zip |
use CMAKE_THREAD_LIBS_INIT as a target link library, which unbreaks breakage from #390 (#450)
-rw-r--r-- | CMakeLists.txt | 3 | ||||
-rw-r--r-- | src/support/CMakeLists.txt | 1 |
2 files changed, 1 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f8121a21..8b90dc0b8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,9 +63,6 @@ ELSE() ADD_COMPILE_FLAG("-Wno-unused-parameter") ADD_COMPILE_FLAG("-fno-omit-frame-pointer") ADD_COMPILE_FLAG("-fPIC") - IF(CMAKE_THREAD_LIBS_INIT) - ADD_LINK_FLAG("${CMAKE_THREAD_LIBS_INIT}") - ENDIF() IF(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG") ADD_COMPILE_FLAG("-O0") ADD_COMPILE_FLAG("-g3") diff --git a/src/support/CMakeLists.txt b/src/support/CMakeLists.txt index 08546e3ee..b12ef6edd 100644 --- a/src/support/CMakeLists.txt +++ b/src/support/CMakeLists.txt @@ -8,3 +8,4 @@ SET(support_SOURCES threads.cpp ) ADD_LIBRARY(support STATIC ${support_SOURCES}) +TARGET_LINK_LIBRARIES(support ${CMAKE_THREAD_LIBS_INIT}) |