mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-13 12:59:55 -05:00
Merge topic 'aix-threads'
4ff89fb6AIX: Add -pthread flag to enable std::thread with GCC6e613ff3bootstrap: Add infrastructure to detect threading flags Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1535
This commit is contained in:
3
Source/Modules/OverrideC.cmake
Normal file
3
Source/Modules/OverrideC.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
if("${CMAKE_SYSTEM_NAME};${CMAKE_C_COMPILER_ID}" STREQUAL "AIX;GNU")
|
||||
string(APPEND CMAKE_C_FLAGS_INIT " -pthread")
|
||||
endif()
|
||||
3
Source/Modules/OverrideCXX.cmake
Normal file
3
Source/Modules/OverrideCXX.cmake
Normal file
@@ -0,0 +1,3 @@
|
||||
if("${CMAKE_SYSTEM_NAME};${CMAKE_CXX_COMPILER_ID}" STREQUAL "AIX;GNU")
|
||||
string(APPEND CMAKE_CXX_FLAGS_INIT " -pthread")
|
||||
endif()
|
||||
Reference in New Issue
Block a user