Not setting c++98compat warning for xcode
This commit is contained in:
parent
ee3ea72e3c
commit
04c04c6bce
@ -36,6 +36,10 @@ if ( CMAKE_CXX_COMPILER_ID STREQUAL "Clang" )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++" )
|
||||
endif()
|
||||
|
||||
if ( CMAKE_GENERATOR STREQUAL Xcode )
|
||||
set( CMAKE_GENERATOR_IS_XCODE true )
|
||||
endif()
|
||||
|
||||
# Force release build by default, speed is of the essence
|
||||
if ( NOT CMAKE_BUILD_TYPE )
|
||||
set( CMAKE_BUILD_TYPE Release )
|
||||
|
@ -120,7 +120,7 @@ endif()
|
||||
#############################################################################
|
||||
|
||||
# We want warnings if we accidentally use C++11 features
|
||||
if ( COMPILER_IS_CLANG )
|
||||
if ( COMPILER_IS_CLANG AND NOT CMAKE_GENERATOR_IS_XCODE )
|
||||
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wc++98-compat" )
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user