mirror of https://github.com/Icinga/icinga2.git
GNU C++ pthread compiler option for AIX.
Ref. https://www.ibm.com/developerworks/aix/library/au-gnu.html Fixes #5999 Signed-off-by: Michael Friedrich <michael.friedrich@netways.de>
This commit is contained in:
parent
7805b23330
commit
56ce830286
|
@ -87,7 +87,11 @@ endif()
|
||||||
|
|
||||||
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
if("${CMAKE_C_COMPILER_ID}" STREQUAL "GNU")
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
|
||||||
|
if(${CMAKE_SYSTEM_NAME} MATCHES AIX)
|
||||||
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -lpthread")
|
||||||
|
else()
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
|
|
Loading…
Reference in New Issue