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
This commit is contained in:
Brad King
2017-11-29 13:27:40 +00:00
committed by Kitware Robot
4 changed files with 46 additions and 19 deletions

View File

@@ -0,0 +1,3 @@
if("${CMAKE_SYSTEM_NAME};${CMAKE_C_COMPILER_ID}" STREQUAL "AIX;GNU")
string(APPEND CMAKE_C_FLAGS_INIT " -pthread")
endif()

View File

@@ -0,0 +1,3 @@
if("${CMAKE_SYSTEM_NAME};${CMAKE_CXX_COMPILER_ID}" STREQUAL "AIX;GNU")
string(APPEND CMAKE_CXX_FLAGS_INIT " -pthread")
endif()