Skip to content

Commit

Permalink
CMake: Add minimal support for pool debugging.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1917974 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed May 26, 2024
1 parent b6b94ef commit 2d727e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ OPTION(APR_BUILD_TESTAPR "Build the test suite" ON)
OPTION(APR_BUILD_SHARED "Build shared libraries" ON)
OPTION(APR_BUILD_STATIC "Build static libraries." ON)
OPTION(APR_MODULAR_DSO "Use DSO build of modular components." ON)
OPTION(APR_POOL_DEBUG "Turn on pools debugging." OFF)
OPTION(TEST_STATIC_LIBS "Test programs use APR static libraries instead of shared libraries?" OFF)

IF(NOT APR_BUILD_SHARED AND NOT APR_BUILD_STATIC)
Expand Down Expand Up @@ -111,6 +112,10 @@ IF(NOT SQLite3_FOUND)
ENDIF()
ENDIF()

IF(APR_POOL_DEBUG)
ADD_COMPILE_DEFINITIONS(APR_POOL_DEBUG=1)
ENDIF()

# create 1-or-0 representation of feature tests for apr.h

SET(apr_have_ipv6_10 0)
Expand Down Expand Up @@ -828,6 +833,7 @@ MESSAGE(STATUS " Have Crypto ..................... : ${APU_HAVE_CRYPTO}")
MESSAGE(STATUS " Have Iconv ...................... : ${APU_HAVE_ICONV}")
MESSAGE(STATUS " Library files for XML ........... : ${XMLLIB_LIBRARIES}")
MESSAGE(STATUS " DSO build of modular components.. : ${APR_MODULAR_DSO}")
MESSAGE(STATUS " Turn on pools debugging ..........: ${APR_POOL_DEBUG}")
MESSAGE(STATUS " Build shared libs ............... : ${APR_BUILD_SHARED}")
MESSAGE(STATUS " Build static libs ............... : ${APR_BUILD_STATIC}")
MESSAGE(STATUS " Build test suite ................ : ${APR_BUILD_TESTAPR}")
Expand Down
3 changes: 2 additions & 1 deletion README.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ How to build
Default: ON
APR_BUILD_TESTAPR Build APR test suite
Default: OFF
APR_POOL_DEBUG Turn on pools debugging
Default: OFF
TEST_STATIC_LIBS Build the test suite to test the APR static
library instead of the APR dynamic library.
Default: OFF
Expand Down Expand Up @@ -105,7 +107,6 @@ Known Bugs and Limitations
cause the build to fail.
* Options should be provided for remaining features, along with finding any
necessary libraries
+ APR_POOL_DEBUG
+ DBM:
. APU_HAVE_GDBM
. APU_HAVE_NDBM
Expand Down

0 comments on commit 2d727e1

Please sign in to comment.