mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Revert part of previous CMake debug type fix
This commit is contained in:
parent
3b28f59c3b
commit
ef2473564e
1 changed files with 6 additions and 2 deletions
|
@ -11,8 +11,12 @@ project(Zeek C CXX)
|
||||||
|
|
||||||
# We want to set ENABLE_DEBUG to ON by default if the build type is Debug.
|
# We want to set ENABLE_DEBUG to ON by default if the build type is Debug.
|
||||||
set(ENABLE_DEBUG_DEFAULT OFF)
|
set(ENABLE_DEBUG_DEFAULT OFF)
|
||||||
if (NOT GENERATOR_IS_MULTI_CONFIG AND CMAKE_BUILD_TYPE STREQUAL "Debug")
|
if (NOT GENERATOR_IS_MULTI_CONFIG)
|
||||||
set(ENABLE_DEBUG_DEFAULT ON)
|
string(TOLOWER "${CMAKE_BUILD_TYPE}" _build_type_lower)
|
||||||
|
if (_build_type_lower STREQUAL "debug")
|
||||||
|
set(ENABLE_DEBUG_DEFAULT ON)
|
||||||
|
endif ()
|
||||||
|
unset(_build_type_lower)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
# On UNIX, install additional Zeek tools by default and build shared objects.
|
# On UNIX, install additional Zeek tools by default and build shared objects.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue