diff options
author | Brad King <brad.king@kitware.com> | 2017-11-28 11:24:26 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-11-28 11:24:26 -0500 |
commit | 4ff89fb6084d84aabe2e64aeccad03794af65a8a (patch) | |
tree | 0982bae88c784b984465112c287ddc48a72dbe42 /Source/Modules | |
parent | 6e613ff399166c59e881331027e65c601feab807 (diff) | |
download | cmake-4ff89fb6084d84aabe2e64aeccad03794af65a8a.tar.gz |
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 0000000000..f8299adb08 --- /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 0000000000..13689e2c55 --- /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() |