Skip to content

Commit 0f03786

Browse files
committed
letter case normalize for build
1 parent ada2b2a commit 0f03786

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ endif()
5858

5959

6060
string(TOLOWER "${LOG_LEVEL}" LOG_LEVEL_LOWER)
61+
string(TOLOWER "${CMAKE_BUILD_TYPE}" CMAKE_BUILD_TYPE_LOWER)
6162

6263
if(LOG_LEVEL_LOWER STREQUAL "default")
63-
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
64+
if(CMAKE_BUILD_TYPE_LOWER MATCHES "Debug")
6465
message(STATUS "LOG_LEVEL is not set, use DEBUG as default for debug build")
6566
add_compile_definitions(LOGLEVEL=6)
6667
else()

0 commit comments

Comments
 (0)