mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
32423cf27b
commit
ed7e697d35
1 changed files with 3 additions and 6 deletions
|
@ -19,12 +19,10 @@ project(BinPAC)
|
||||||
|
|
||||||
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" BINPAC_VERSION LIMIT_COUNT 1)
|
file(STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" BINPAC_VERSION LIMIT_COUNT 1)
|
||||||
|
|
||||||
if (ENABLE_DEBUG AND ENABLE_RELEASE)
|
if (ENABLE_DEBUG)
|
||||||
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
|
||||||
elseif (ENABLE_DEBUG AND NOT ENABLE_RELEASE)
|
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
elseif (NOT ENABLE_DEBUG AND ENABLE_RELEASE)
|
else ()
|
||||||
set(CMAKE_BUILD_TYPE Release)
|
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# don't set extra compile flags again if already declared in this scope
|
# don't set extra compile flags again if already declared in this scope
|
||||||
|
@ -89,7 +87,6 @@ message(
|
||||||
"\n"
|
"\n"
|
||||||
"\nInstall prefix: ${binpac_install_summary}"
|
"\nInstall prefix: ${binpac_install_summary}"
|
||||||
"\nDebug mode: ${ENABLE_DEBUG}"
|
"\nDebug mode: ${ENABLE_DEBUG}"
|
||||||
"\nRelease mode: ${ENABLE_RELEASE}"
|
|
||||||
"\n"
|
"\n"
|
||||||
"\nCC: ${CMAKE_C_COMPILER}"
|
"\nCC: ${CMAKE_C_COMPILER}"
|
||||||
"\nCFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BuildType}}"
|
"\nCFLAGS: ${CMAKE_C_FLAGS} ${CMAKE_C_FLAGS_${BuildType}}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue