From ed7e697d35ad828a4b0472565a8b0987bb08e137 Mon Sep 17 00:00:00 2001 From: Jon Siwek Date: Thu, 18 Nov 2010 11:33:51 -0600 Subject: [PATCH] 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. --- tools/binpac/CMakeLists.txt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/tools/binpac/CMakeLists.txt b/tools/binpac/CMakeLists.txt index ead7550646..6f5a3076ab 100644 --- a/tools/binpac/CMakeLists.txt +++ b/tools/binpac/CMakeLists.txt @@ -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}}"