Skip to content
Snippets Groups Projects
Commit ca6d2626 authored by Lars Bilke's avatar Lars Bilke
Browse files

New CMake option OGS_DISABLE_LOGGING to do just that.

parent 893b4d33
No related branches found
No related tags found
No related merge requests found
......@@ -48,6 +48,9 @@ OPTION(OGS_BUILD_GUI "Should the Data Explorer be built?" OFF)
OPTION(OGS_NO_EXTERNAL_LIBS "Builds OGS without any external dependencies." OFF)
# Logging
OPTION(OGS_DISABLE_LOGGING "Disables all logog messages." OFF)
# Print CMake variable values
IF (OGS_CMAKE_DEBUG)
INCLUDE(ListAllCMakeVariableValues)
......
......@@ -3,6 +3,10 @@ SET( EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin )
SET( LIBRARY_OUTPUT_PATH ${PROJECT_BINARY_DIR}/lib )
# Logging level
IF(OGS_DISABLE_LOGGING)
SET(OGS_LOG_LEVEL LOGOG_LEVEL_NONE)
ENDIF()
IF(NOT DEFINED OGS_LOG_LEVEL)
IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
ADD_DEFINITIONS(-DLOGOG_LEVEL=LOGOG_LEVEL_DEBUG)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment