mirror of https://github.com/ZDoom/fluidsynth.git
Make cmake default to "RelWithDebInfo" if not specified
Recent releases has "none" target as the default, with is problematic. Also print the build type.
This commit is contained in:
parent
9800764026
commit
62e375c71c
|
@ -265,6 +265,11 @@ if ( enable-debug )
|
||||||
"Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
|
"Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
|
||||||
endif ( enable-debug )
|
endif ( enable-debug )
|
||||||
|
|
||||||
|
if ( NOT CMAKE_BUILD_TYPE )
|
||||||
|
set ( CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
|
||||||
|
"Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
|
||||||
|
endif ( NOT CMAKE_BUILD_TYPE )
|
||||||
|
|
||||||
unset ( ENABLE_DEBUG CACHE )
|
unset ( ENABLE_DEBUG CACHE )
|
||||||
unset ( DEBUG CACHE )
|
unset ( DEBUG CACHE )
|
||||||
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
|
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
message( "\n**************************************************************\n"
|
message( "\n**************************************************************\n"
|
||||||
"Summary:" )
|
"Summary:" )
|
||||||
|
|
||||||
|
message( "Build type: " ${CMAKE_BUILD_TYPE} )
|
||||||
|
|
||||||
if ( LIBSNDFILE_SUPPORT )
|
if ( LIBSNDFILE_SUPPORT )
|
||||||
if ( LIBSNDFILE_HASVORBIS )
|
if ( LIBSNDFILE_HASVORBIS )
|
||||||
message ( "libsndfile: yes (with ogg vorbis support)" )
|
message ( "libsndfile: yes (with ogg vorbis support)" )
|
||||||
|
|
Loading…
Reference in New Issue