mirror of
https://github.com/cuberite/libevent.git
synced 2025-08-04 09:46:23 -04:00
Set USE_DEBUG=1 on EVENT__ENABLE_VERBOSE_DEBUG
This commit is contained in:
parent
49ab363271
commit
fd42e70d18
@ -40,7 +40,6 @@ option(EVENT__DISABLE_TESTS "If tests should be compiled or not" OFF)
|
|||||||
option(EVENT__DISABLE_REGRESS "Disable the regress tests" OFF)
|
option(EVENT__DISABLE_REGRESS "Disable the regress tests" OFF)
|
||||||
option(EVENT__FORCE_KQUEUE_CHECK "When crosscompiling forces running a test program that verifies that Kqueue works with pipes. Note that this requires you to manually run the test program on the the cross compilation target to verify that it works. See cmake documentation for try_run for more details" OFF)
|
option(EVENT__FORCE_KQUEUE_CHECK "When crosscompiling forces running a test program that verifies that Kqueue works with pipes. Note that this requires you to manually run the test program on the the cross compilation target to verify that it works. See cmake documentation for try_run for more details" OFF)
|
||||||
option(EVENT__COVERAGE "Enable running gcov to get a test coverage report (only works with GCC/CLang). Make sure to enable -DCMAKE_BUILD_TYPE=Debug as well." OFF)
|
option(EVENT__COVERAGE "Enable running gcov to get a test coverage report (only works with GCC/CLang). Make sure to enable -DCMAKE_BUILD_TYPE=Debug as well." OFF)
|
||||||
# TODO: Add --enable-verbose-debug, verbose debug logging
|
|
||||||
# TODO: Add --disable-largefile omit support for large files
|
# TODO: Add --disable-largefile omit support for large files
|
||||||
|
|
||||||
# Put the libaries and binaries that get built into directories at the
|
# Put the libaries and binaries that get built into directories at the
|
||||||
@ -62,6 +61,10 @@ include(CheckStructHasMember)
|
|||||||
include(CheckCSourceCompiles)
|
include(CheckCSourceCompiles)
|
||||||
include(CheckPrototypeDefinition)
|
include(CheckPrototypeDefinition)
|
||||||
|
|
||||||
|
if (EVENT__ENABLE_VERBOSE_DEBUG)
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DUSE_DEBUG=1")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Setup compiler flags for coverage.
|
# Setup compiler flags for coverage.
|
||||||
if (EVENT__COVERAGE)
|
if (EVENT__COVERAGE)
|
||||||
if(NOT CMAKE_COMPILER_IS_GNUCC)
|
if(NOT CMAKE_COMPILER_IS_GNUCC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user