binpac: Changed default CMAKE_BUILD_TYPE to RelWithDebInfo

The --enable-debug option of the configure wrapper changes it to Debug.
Removed --enable-release option of the configure wrapper.
This commit is contained in:
Jon Siwek 2010-11-18 11:33:51 -06:00 committed by Tim Wojtulewicz
parent 32423cf27b
commit ed7e697d35

View file

@ -19,12 +19,10 @@ project(BinPAC)
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" BINPAC_VERSION LIMIT_COUNT 1)
if (ENABLE_DEBUG AND ENABLE_RELEASE)
set(CMAKE_BUILD_TYPE RelWithDebInfo)
elseif (ENABLE_DEBUG AND NOT ENABLE_RELEASE)
if (ENABLE_DEBUG)
set(CMAKE_BUILD_TYPE Debug)
elseif (NOT ENABLE_DEBUG AND ENABLE_RELEASE)
set(CMAKE_BUILD_TYPE Release)
else ()
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif ()
# don't set extra compile flags again if already declared in this scope
@ -89,7 +87,6 @@ message(
"\n"
"\nInstall prefix: ${binpac_install_summary}"
"\nDebug mode: ${ENABLE_DEBUG}"
"\nRelease mode: ${ENABLE_RELEASE}"
"\n"
"\nCC: ${CMAKE_C_COMPILER}"
"\nCFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BuildType}}"