Skip to content

Commit

Permalink
Make cmake default to "RelWithDebInfo" if not specified
Browse files Browse the repository at this point in the history
Recent releases has "none" target as the default, with is problematic.

Also print the build type.
  • Loading branch information
diwic committed Aug 4, 2012
1 parent 9800764 commit 62e375c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fluidsynth/CMakeLists.txt
Expand Up @@ -265,6 +265,11 @@ if ( enable-debug )
"Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
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 ( DEBUG CACHE )
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
Expand Down
2 changes: 2 additions & 0 deletions fluidsynth/cmake_admin/report.cmake
@@ -1,6 +1,8 @@
message( "\n**************************************************************\n"
"Summary:" )

message( "Build type: " ${CMAKE_BUILD_TYPE} )

if ( LIBSNDFILE_SUPPORT )
if ( LIBSNDFILE_HASVORBIS )
message ( "libsndfile: yes (with ogg vorbis support)" )
Expand Down

0 comments on commit 62e375c

Please sign in to comment.