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}}"