summaryrefslogtreecommitdiffstats
path: root/Source/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-11-28 16:24:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-11-28 16:24:26 (GMT)
commit4ff89fb6084d84aabe2e64aeccad03794af65a8a (patch)
tree0982bae88c784b984465112c287ddc48a72dbe42 /Source/Modules
parent6e613ff399166c59e881331027e65c601feab807 (diff)
downloadCMake-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.cmake3
-rw-r--r--Source/Modules/OverrideCXX.cmake3
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()