mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Merge remote-tracking branch 'origin/topic/jsiwek/debug-flags'
* origin/topic/jsiwek/debug-flags: Workaround for FreeBSD CMake port missing debug flags
This commit is contained in:
commit
1aff02ea96
1 changed files with 2 additions and 1 deletions
|
@ -63,7 +63,8 @@ set(EXTRA_COMPILE_FLAGS "-Wall -Wno-unused")
|
||||||
|
|
||||||
if (ENABLE_DEBUG)
|
if (ENABLE_DEBUG)
|
||||||
set(CMAKE_BUILD_TYPE Debug)
|
set(CMAKE_BUILD_TYPE Debug)
|
||||||
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -DDEBUG")
|
# manual add of -g works around its omission in FreeBSD's CMake port
|
||||||
|
set(EXTRA_COMPILE_FLAGS "${EXTRA_COMPILE_FLAGS} -g -DDEBUG")
|
||||||
else ()
|
else ()
|
||||||
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
set(CMAKE_BUILD_TYPE RelWithDebInfo)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue