Revert part of previous CMake debug type fix

This commit is contained in:
Tim Wojtulewicz 2023-05-22 16:11:58 -07:00
parent 3b28f59c3b
commit ef2473564e

View file

@ -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.