diff options
author | Brad King <brad.king@kitware.com> | 2017-11-28 16:24:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-28 16:24:26 (GMT) |
commit | 4ff89fb6084d84aabe2e64aeccad03794af65a8a (patch) | |
tree | 0982bae88c784b984465112c287ddc48a72dbe42 /Source/Modules | |
parent | 6e613ff399166c59e881331027e65c601feab807 (diff) | |
download | CMake-4ff89fb6084d84aabe2e64aeccad03794af65a8a.zip CMake-4ff89fb6084d84aabe2e64aeccad03794af65a8a.tar.gz CMake-4ff89fb6084d84aabe2e64aeccad03794af65a8a.tar.bz2 |
AIX: Add -pthread flag to enable std::thread with GCC
Diffstat (limited to 'Source/Modules')
-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() |