mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2025-04-09 01:01:53 +00:00
Apply compilation flags to AppleClang
This commit is contained in:
parent
19eacc6b60
commit
b4bef26482
1 changed files with 2 additions and 3 deletions
|
@ -173,8 +173,7 @@ unset ( FLUID_CPPFLAGS CACHE )
|
|||
unset ( FLUID_LIBS CACHE )
|
||||
unset ( ENABLE_UBSAN CACHE )
|
||||
|
||||
# Options for the GNU C compiler only
|
||||
if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
if ( CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID MATCHES "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "Intel" )
|
||||
if ( NOT APPLE AND NOT OS2 )
|
||||
set ( CMAKE_EXE_LINKER_FLAGS
|
||||
"${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 )
|
||||
endif ( enable-ubsan )
|
||||
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
|
||||
unset ( WINDOWS_LIBS CACHE )
|
||||
|
|
Loading…
Reference in a new issue