From 575d8811582bcfe2508a746ff5e94c71e361c82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20L=C3=BCbke?= Date: Tue, 10 Jan 2023 12:45:29 +0100 Subject: [PATCH] build: add option to enable DHT debug infos --- src/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 69bb7a8f4..d1061dc00 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -5,8 +5,14 @@ file(GLOB poet_lib_SRC find_library(MATH_LIBRARY m) find_library(CRYPTO_LIBRARY crypto) +option(POET_DHT_DEBUG "Build with DHT debug info" OFF) + add_library(poet_lib ${poet_lib_SRC}) target_include_directories(poet_lib PUBLIC ${PROJECT_SOURCE_DIR}/include) target_link_libraries(poet_lib PUBLIC MPI::MPI_C ${MATH_LIBRARY} ${CRYPTO_LIBRARY} RRuntime tug PhreeqcRM) target_compile_definitions(poet_lib PUBLIC STRICT_R_HEADERS OMPI_SKIP_MPICXX) + +if(POET_DHT_DEBUG) + target_compile_definitions(poet_lib PRIVATE DHT_STATISTICS) +endif()