mirror of
https://github.com/ZDoom/fluidsynth.git
synced 2024-11-10 06:51:54 +00:00
Remove ${} from CMAKE_SYSTEM variable in IF statement
IF statement interprets a variable without ${}. And without this, CMAKE_SYSTEM is not checked correctly on CMAKE 3.4.1. Signed-off-by: derselbst <tom.mbrt@googlemail.com>
This commit is contained in:
parent
ae6d1dd8ba
commit
0130cbdd4d
1 changed files with 13 additions and 12 deletions
|
@ -70,21 +70,22 @@ option ( BUILD_SHARED_LIBS "Build a shared object or DLL" on )
|
|||
option ( enable-ipv6 "enable ipv6 support " on )
|
||||
|
||||
# Platform specific options
|
||||
if ( ${CMAKE_SYSTEM} MATCHES "Linux" )
|
||||
if ( CMAKE_SYSTEM MATCHES "Linux" )
|
||||
option ( enable-ladcca "compile LADCCA support if it is available (deprecated)" off )
|
||||
option ( enable-lash "compile LASH support (if it is available)" on )
|
||||
option ( enable-alsa "compile ALSA support (if it is available)" on )
|
||||
endif ( ${CMAKE_SYSTEM} MATCHES "Linux" )
|
||||
endif ( CMAKE_SYSTEM MATCHES "Linux" )
|
||||
|
||||
if ( ${CMAKE_SYSTEM} MATCHES "Darwin" )
|
||||
if ( CMAKE_SYSTEM MATCHES "Darwin" )
|
||||
option ( enable-coreaudio "compile CoreAudio support (if it is available)" on )
|
||||
option ( enable-coremidi "compile CoreMIDI support (if it is available)" on )
|
||||
option ( enable-framework "create a Mac OSX style FluidSynth.framework" on )
|
||||
endif ( ${CMAKE_SYSTEM} MATCHES "Darwin" )
|
||||
endif ( CMAKE_SYSTEM MATCHES "Darwin" )
|
||||
|
||||
if ( ${CMAKE_SYSTEM} MATCHES "OS2" )
|
||||
if ( CMAKE_SYSTEM MATCHES "OS2" )
|
||||
option ( enable-dart "compile DART support (if it is available)" on )
|
||||
set ( enable-ipv6 off )
|
||||
endif ( ${CMAKE_SYSTEM} MATCHES "OS2" )
|
||||
endif ( CMAKE_SYSTEM MATCHES "OS2" )
|
||||
|
||||
# Initialize the library directory name suffix.
|
||||
if ( CMAKE_SIZEOF_VOID_P EQUAL 8 )
|
||||
|
@ -187,7 +188,7 @@ endif ( WIN32 )
|
|||
unset ( DART_SUPPORT CACHE )
|
||||
unset ( DART_LIBS CACHE )
|
||||
unset ( DART_INCLUDE_DIRS CACHE )
|
||||
if ( ${CMAKE_SYSTEM} MATCHES "OS2" )
|
||||
if ( CMAKE_SYSTEM MATCHES "OS2" )
|
||||
set ( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Zbin-files" )
|
||||
set ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Zbin-files" )
|
||||
if ( enable-dart )
|
||||
|
@ -195,13 +196,13 @@ if ( ${CMAKE_SYSTEM} MATCHES "OS2" )
|
|||
set ( DART_SUPPORT ${HAVE_DART_H} )
|
||||
unset ( DART_INCLUDE_DIRS CACHE )
|
||||
endif ( enable-dart )
|
||||
endif ( ${CMAKE_SYSTEM} MATCHES "OS2" )
|
||||
endif ( CMAKE_SYSTEM MATCHES "OS2" )
|
||||
|
||||
# Solaris / SunOS
|
||||
if ( ${CMAKE_SYSTEM} MATCHES "SunOS" )
|
||||
if ( CMAKE_SYSTEM MATCHES "SunOS" )
|
||||
set ( FLUID_LIBS "${FLUID_LIBS};nsl;socket" )
|
||||
set ( LIBFLUID_LIBS "${LIBFLUID_LIBS};nsl;socket" )
|
||||
endif ( ${CMAKE_SYSTEM} MATCHES "SunOS" )
|
||||
endif ( CMAKE_SYSTEM MATCHES "SunOS" )
|
||||
|
||||
# Apple Mac OSX
|
||||
unset ( COREAUDIO_SUPPORT CACHE )
|
||||
|
@ -210,7 +211,7 @@ unset ( COREMIDI_SUPPORT CACHE )
|
|||
unset ( COREMIDI_LIBS CACHE )
|
||||
unset ( DARWIN CACHE )
|
||||
unset ( MACOSX_FRAMEWORK CACHE )
|
||||
if ( ${CMAKE_SYSTEM} MATCHES "Darwin" )
|
||||
if ( CMAKE_SYSTEM MATCHES "Darwin" )
|
||||
set ( DARWIN 1 )
|
||||
set ( CMAKE_INSTALL_NAME_DIR
|
||||
${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}${LIB_SUFFIX} )
|
||||
|
@ -231,7 +232,7 @@ if ( ${CMAKE_SYSTEM} MATCHES "Darwin" )
|
|||
if ( enable-framework )
|
||||
set ( MACOSX_FRAMEWORK 1 )
|
||||
endif ( enable-framework )
|
||||
endif ( ${CMAKE_SYSTEM} MATCHES "Darwin" )
|
||||
endif ( CMAKE_SYSTEM MATCHES "Darwin" )
|
||||
|
||||
|
||||
unset ( HAVE_INETNTOP CACHE )
|
||||
|
|
Loading…
Reference in a new issue