mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-07-17 01:06:06 +02:00
added compile option to set log level
This commit is contained in:
@@ -32,7 +32,11 @@ if(NOT CMAKE_USE_PTHREADS_INIT)
|
||||
message(FATAL_ERROR "A POSIX threads (pthread) implementation is required, but was not found.")
|
||||
endif()
|
||||
|
||||
<<<<<<< HEAD
|
||||
set(SLS_LOG_MAX_REPORTING_LEVEL "sls::TLogLevel::logINFO" CACHE STRING "Set the maximum logging level for the project")
|
||||
=======
|
||||
set(SLS_LOG_MAX_REPORTING_LEVEL sls::logINFO CACHE STRING "set logging level")
|
||||
>>>>>>> 3ec0a9337 (added compile option to set log level)
|
||||
|
||||
option(SLS_USE_SYSTEM_ZMQ "Use system installed libzmq" OFF)
|
||||
|
||||
@@ -342,6 +346,9 @@ if(NOT TARGET slsProjectOptions)
|
||||
INTERFACE LOG_MAX_REPORTING_LEVEL=${SLS_LOG_MAX_REPORTING_LEVEL})
|
||||
endif()
|
||||
|
||||
target_compile_definitions(slsProjectOptions
|
||||
INTERFACE LOG_MAX_REPORTING_LEVEL=${SLS_LOG_MAX_REPORTING_LEVEL}
|
||||
)
|
||||
|
||||
if (NOT TARGET slsProjectWarnings)
|
||||
add_library(slsProjectWarnings INTERFACE)
|
||||
|
||||
Reference in New Issue
Block a user