Skip to content

Commit d224a03

Browse files
committed
Added options to enable logging in non-debug or totally disable logging.
1 parent d05ad3f commit d224a03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

+3
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES Clang)
4343
message("C++ Flags: ${CMAKE_CXX_FLAGS} link flags: ${CMAKE_CXX_LINK_FLAGS}")
4444
endif()
4545

46+
option( CPP-NETLIB_ALWAYS_LOGGING "Allow cpp-netlib to log debug messages even in non-debug mode." FALSE )
47+
option( CPP-NETLIB_DISABLE_LOGGING "Disable logging definitely, no logging code will be generated or compiled." FALSE )
48+
4649
if (Boost_FOUND)
4750
if (MSVC)
4851
add_definitions(-D_SCL_SECURE_NO_WARNINGS)

0 commit comments

Comments
 (0)