commit
7659a7b8f9
@ -118,3 +118,8 @@ if( MSVC )
|
||||
set( CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} /Oi /GL" )
|
||||
set_target_properties( ${PROJECT_NAME} PROPERTIES STATIC_LIBRARY_FLAGS "/LTCG" )
|
||||
endif()
|
||||
|
||||
if( SYSTEM_IS_SUNOS )
|
||||
# SunOS needs this setting for thread support
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthreads" )
|
||||
endif()
|
||||
|
@ -28,6 +28,10 @@ if ( ${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD" )
|
||||
set( SYSTEM_IS_FREEBSD true )
|
||||
endif()
|
||||
|
||||
if ( ${CMAKE_SYSTEM_NAME} MATCHES "SunOS" )
|
||||
set( SYSTEM_IS_SUNOS true )
|
||||
endif()
|
||||
|
||||
# Check if platform is 64 bit
|
||||
if( CMAKE_SIZEOF_VOID_P EQUAL 4 )
|
||||
set( 64_BIT_PLATFORM 0 )
|
||||
|
@ -313,4 +313,9 @@ endif()
|
||||
|
||||
#############################################################################
|
||||
|
||||
if( SYSTEM_IS_SUNOS )
|
||||
# SunOS needs this setting for thread support
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthreads" )
|
||||
endif()
|
||||
|
||||
add_subdirectory( tests )
|
||||
|
Loading…
Reference in New Issue
Block a user