Apply compilation flags to AppleClang

This commit is contained in:
derselbst 2019-11-13 21:27:48 +02:00
parent 19eacc6b60
commit b4bef26482

View file

@ -173,8 +173,7 @@ unset ( FLUID_CPPFLAGS CACHE )
unset ( FLUID_LIBS CACHE ) unset ( FLUID_LIBS CACHE )
unset ( ENABLE_UBSAN CACHE ) unset ( ENABLE_UBSAN CACHE )
# Options for the GNU C compiler only if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
if ( NOT APPLE AND NOT OS2 ) if ( NOT APPLE AND NOT OS2 )
set ( CMAKE_EXE_LINKER_FLAGS set ( CMAKE_EXE_LINKER_FLAGS
"${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed" ) "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed" )
@ -202,7 +201,7 @@ if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_
set ( ENABLE_UBSAN 1 ) set ( ENABLE_UBSAN 1 )
endif ( enable-ubsan ) endif ( enable-ubsan )
endif (CMAKE_C_COMPILER_ID STREQUAL "Intel" ) endif (CMAKE_C_COMPILER_ID STREQUAL "Intel" )
endif ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" ) endif ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
# Windows # Windows
unset ( WINDOWS_LIBS CACHE ) unset ( WINDOWS_LIBS CACHE )