We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ada2b2a commit 0f03786Copy full SHA for 0f03786
1 file changed
CMakeLists.txt
@@ -58,9 +58,10 @@ endif()
58
59
60
string(TOLOWER "${LOG_LEVEL}" LOG_LEVEL_LOWER)
61
+string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
62
63
if(LOG_LEVEL_LOWER STREQUAL "default")
- if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
64
+ if(CMAKE_BUILD_TYPE_LOWER MATCHES "Debug")
65
message(STATUS "LOG_LEVEL is not set, use DEBUG as default for debug build")
66
add_compile_definitions(LOGLEVEL=6)
67
else()
0 commit comments