Skip to content

Commit 048b518

Browse files
committed
fix(CMake): correct CMAKE_BUILD_TYPE comparison
Corrected the CMAKE_BUILD_TYPE comparison by adding quotes to ensure proper string comparison in CMakeLists.txt. This resolves issues with conditional compilation options for the Debug build type.
1 parent 473a57b commit 048b518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_CURRENT_LIST_DIR})
7575
test-argo PROPERTIES CXX_CLANG_TIDY
7676
"${CLANG_TIDY_EXE};-p;${CMAKE_BINARY_DIR}")
7777
endif()
78-
if(${CMAKE_BUILD_TYPE} STREQUAL "Debug")
78+
if("${CMAKE_BUILD_TYPE}" STREQUAL "Debug")
7979
target_compile_options(test-argo PRIVATE -fprofile-instr-generate
8080
-fcoverage-mapping)
8181
target_link_options(test-argo PRIVATE -fprofile-instr-generate

0 commit comments

Comments
 (0)