diff options
author | Brad King <brad.king@kitware.com> | 2017-11-29 13:27:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-11-29 13:32:00 (GMT) |
commit | 71c28bddba25847f65cfebefe884d8e88eedc1af (patch) | |
tree | d83c94648291da235354a5b2aeb78f59f5591723 /Source | |
parent | d5cad740789bdb2933b5d189f5cd5b7aada9700b (diff) | |
parent | 4ff89fb6084d84aabe2e64aeccad03794af65a8a (diff) | |
download | CMake-71c28bddba25847f65cfebefe884d8e88eedc1af.zip CMake-71c28bddba25847f65cfebefe884d8e88eedc1af.tar.gz CMake-71c28bddba25847f65cfebefe884d8e88eedc1af.tar.bz2 |
Merge topic 'aix-threads'
4ff89fb6 AIX: Add -pthread flag to enable std::thread with GCC
6e613ff3 bootstrap: Add infrastructure to detect threading flags
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1535
Diffstat (limited to 'Source')
-rw-r--r-- | Source/Modules/OverrideC.cmake | 3 | ||||
-rw-r--r-- | Source/Modules/OverrideCXX.cmake | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/Source/Modules/OverrideC.cmake b/Source/Modules/OverrideC.cmake new file mode 100644 index 0000000..f8299ad --- /dev/null +++ b/Source/Modules/OverrideC.cmake @@ -0,0 +1,3 @@ +if("${CMAKE_SYSTEM_NAME};${CMAKE_C_COMPILER_ID}" STREQUAL "AIX;GNU") + string(APPEND CMAKE_C_FLAGS_INIT " -pthread") +endif() diff --git a/Source/Modules/OverrideCXX.cmake b/Source/Modules/OverrideCXX.cmake new file mode 100644 index 0000000..13689e2 --- /dev/null +++ b/Source/Modules/OverrideCXX.cmake @@ -0,0 +1,3 @@ +if("${CMAKE_SYSTEM_NAME};${CMAKE_CXX_COMPILER_ID}" STREQUAL "AIX;GNU") + string(APPEND CMAKE_CXX_FLAGS_INIT " -pthread") +endif() |