diff --git a/cmake/modules/BasicConfig.cmake b/cmake/modules/BasicConfig.cmake index d1256a1..2c80d74 100644 --- a/cmake/modules/BasicConfig.cmake +++ b/cmake/modules/BasicConfig.cmake @@ -57,3 +57,9 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug") add_definitions(-DDEBUG_BUILD) message(STATUS "Debug build enabled.") endif() + +# enable logging when option is set +set(LOGGING_ENABLED "no" CACHE STRING "specifies whether logging is enabled") +if(${LOGGING_ENABLED} STREQUAL "yes") + add_definitions(-DLOGGING_ENABLED) +endif()