cvc4_option(ENABLE_SHARED "Build as shared library")
# >> 2-valued: ON OFF
# > for options where we don't need to detect if set by user (default: OFF)
-option(ENABLE_BEST "Enable dependencies known to give best performance")
-option(ENABLE_COVERAGE "Enable support for gcov coverage testing")
-option(ENABLE_PROFILING "Enable support for gprof profiling")
+option(ENABLE_BEST "Enable dependencies known to give best performance")
+option(ENABLE_COVERAGE "Enable support for gcov coverage testing")
+option(ENABLE_DEBUG_CONTEXT_MM "Enable the debug context memory manager")
+option(ENABLE_PROFILING "Enable support for gprof profiling")
# Optional dependencies
#
DEPENDENCIES cvc4-bin)
endif()
+if(ENABLE_DEBUG_CONTEXT_MM)
+ add_definitions(-DCVC4_DEBUG_CONTEXT_MEMORY_MANAGER)
+endif()
+
if(ENABLE_DUMPING)
add_definitions(-DCVC4_DUMPING)
else()
message("CVC4 ${CVC4_RELEASE_STRING}")
message("")
-message("Build profile : ${CVC4_BUILD_PROFILE_STRING}")
-message("Optimized : ${ENABLE_OPTIMIZED}")
-message("Optimization level: ${OPTIMIZATION_LEVEL}")
-message("Debug symbols : ${ENABLE_DEBUG_SYMBOLS}")
-message("Proofs : ${ENABLE_PROOFS}")
-message("Statistics : ${ENABLE_STATISTICS}")
-message("Replay : ${ENABLE_REPLAY}")
-message("Assertions : ${ENABLE_ASSERTIONS}")
-message("Tracing : ${ENABLE_TRACING}")
-message("Dumping : ${ENABLE_DUMPING}")
-message("Muzzle : ${ENABLE_MUZZLE}")
+message("Build profile : ${CVC4_BUILD_PROFILE_STRING}")
+message("Optimized : ${ENABLE_OPTIMIZED}")
+message("Optimization level : ${OPTIMIZATION_LEVEL}")
+message("Debug symbols : ${ENABLE_DEBUG_SYMBOLS}")
+message("Debug context mem mgr: ${ENABLE_DEBUG_CONTEXT_MM}")
+message("Proofs : ${ENABLE_PROOFS}")
+message("Statistics : ${ENABLE_STATISTICS}")
+message("Replay : ${ENABLE_REPLAY}")
+message("Assertions : ${ENABLE_ASSERTIONS}")
+message("Tracing : ${ENABLE_TRACING}")
+message("Dumping : ${ENABLE_DUMPING}")
+message("Muzzle : ${ENABLE_MUZZLE}")
message("")
-message("Unit tests : ${ENABLE_UNIT_TESTING}")
-message("Coverage (gcov) : ${ENABLE_COVERAGE}")
-message("Profiling (gprof) : ${ENABLE_PROFILING}")
+message("Unit tests : ${ENABLE_UNIT_TESTING}")
+message("Coverage (gcov) : ${ENABLE_COVERAGE}")
+message("Profiling (gprof) : ${ENABLE_PROFILING}")
message("")
-message("Shared libs : ${ENABLE_SHARED}")
+message("Shared libs : ${ENABLE_SHARED}")
#message("Static binary: ${enable_static_binary}")
#message("Compat lib : ${CVC4_BUILD_LIBCOMPAT}")
#message("Bindings : ${bindings_to_be_built}")
#message("")
#message("Multithreaded: ${support_multithreaded}")
-message("Portfolio : ${ENABLE_PORTFOLIO}")
+message("Portfolio : ${ENABLE_PORTFOLIO}")
message("")
-message("ABC : ${USE_ABC}")
-message("CaDiCaL : ${USE_CADICAL}")
-message("CryptoMiniSat : ${USE_CRYPTOMINISAT}")
-message("GLPK : ${USE_GLPK}")
-message("LFSC : ${USE_LFSC}")
+message("ABC : ${USE_ABC}")
+message("CaDiCaL : ${USE_CADICAL}")
+message("CryptoMiniSat : ${USE_CRYPTOMINISAT}")
+message("GLPK : ${USE_GLPK}")
+message("LFSC : ${USE_LFSC}")
if(CVC4_USE_CLN_IMP)
- message("MP library : cln")
+ message("MP library : cln")
else()
- message("MP library : gmp")
+ message("MP library : gmp")
endif()
-message("Readline : ${USE_READLINE}")
-message("SymFPU : ${USE_SYMFPU}")
+message("Readline : ${USE_READLINE}")
+message("SymFPU : ${USE_SYMFPU}")
message("")
-message("CPPLAGS (-D...) : ${CVC4_DEFINITIONS}")
-message("CXXFLAGS : ${CMAKE_CXX_FLAGS}")
-message("CFLAGS : ${CMAKE_C_FLAGS}")
+message("CPPLAGS (-D...) : ${CVC4_DEFINITIONS}")
+message("CXXFLAGS : ${CMAKE_CXX_FLAGS}")
+message("CFLAGS : ${CMAKE_C_FLAGS}")
#message("LIBS : ${LIBS}")
#message("LDFLAGS : ${LDFLAGS}")
#message("")
#message("libcvc4compat version : ${CVC4_COMPAT_LIBRARY_VERSION_or_nobuild}")
#message("libcvc4bindings version: ${CVC4_BINDINGS_LIBRARY_VERSION_or_nobuild}")
#message("")
-message("Install prefix : ${CMAKE_INSTALL_PREFIX}")
+message("Install prefix : ${CMAKE_INSTALL_PREFIX}")
message("")
if(GPL_LIBS)