mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
Add --build-type flag to configure wrapper.
This commit is contained in:
parent
7139e30bed
commit
105cdb5aaf
2 changed files with 16 additions and 1 deletions
|
@ -246,6 +246,8 @@ endif ()
|
|||
message(
|
||||
"\n====================| Bro Build Summary |====================="
|
||||
"\n"
|
||||
"\nBuild type: ${CMAKE_BUILD_TYPE}"
|
||||
"\nBuild dir: ${CMAKE_BINARY_DIR}"
|
||||
"\nInstall prefix: ${CMAKE_INSTALL_PREFIX}"
|
||||
"\nBro Script Path: ${BRO_SCRIPT_INSTALL_PATH}"
|
||||
"\nDebug mode: ${ENABLE_DEBUG}"
|
||||
|
|
15
configure
vendored
15
configure
vendored
|
@ -18,6 +18,12 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
|
|||
|
||||
Build Options:
|
||||
--builddir=DIR place build files in directory [build]
|
||||
--build-type=TYPE set CMake build type [RelWithDebInfo]:
|
||||
- Debug: optimizations off, debug symbols + flags
|
||||
- MinSizeRel: size optimizations, debugging off
|
||||
- Release: optimizations on, debugging off
|
||||
- RelWithDebInfo: optimizations on,
|
||||
debug symbols on, debug flags off
|
||||
--generator=GENERATOR CMake generator to use (see cmake --help)
|
||||
|
||||
Installation Directories:
|
||||
|
@ -34,7 +40,7 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
|
|||
--conf-files-dir=PATH config files installation directory [PREFIX/etc]
|
||||
|
||||
Optional Features:
|
||||
--enable-debug compile in debugging mode
|
||||
--enable-debug compile in debugging mode (like --build-type=Debug)
|
||||
--enable-mobile-ipv6 analyze mobile IPv6 features defined by RFC 6275
|
||||
--enable-perftools force use of Google perftools on non-Linux systems
|
||||
(automatically on when perftools is present on Linux)
|
||||
|
@ -153,6 +159,13 @@ while [ $# -ne 0 ]; do
|
|||
--builddir=*)
|
||||
builddir=$optarg
|
||||
;;
|
||||
--build-type=*)
|
||||
append_cache_entry CMAKE_BUILD_TYPE STRING $optarg
|
||||
|
||||
if [ $(echo "$optarg" | tr [:upper:] [:lower:]) = "debug" ]; then
|
||||
append_cache_entry ENABLE_DEBUG BOOL true
|
||||
fi
|
||||
;;
|
||||
--generator=*)
|
||||
CMakeGenerator="$optarg"
|
||||
;;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue