From 6778d4ce455ce6d10d8dce96178dd17049851e80 Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Mon, 29 Apr 2024 21:40:58 -0500 Subject: [PATCH] xo-cmake: bugfix: syntax when no CMAKE_BUILD_TYPE def --- cmake/xo_macros/xo_cxx.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/xo_macros/xo_cxx.cmake b/cmake/xo_macros/xo_cxx.cmake index 43b9ff30..58dff986 100644 --- a/cmake/xo_macros/xo_cxx.cmake +++ b/cmake/xo_macros/xo_cxx.cmake @@ -38,7 +38,7 @@ endmacro() # debug build (cmake -DCMAKE_BUILD_TYPE=debug path/to/source) # macro(xo_toplevel_debug_config2) - if (${CMAKE_BUILD_TYPE} STREQUAL "debug") + if ("${CMAKE_BUILD_TYPE}" STREQUAL "debug") # clear out hardwired default. # we want to override project-level defaults, # but need to prevent interference from hardwired defaults @@ -77,7 +77,7 @@ endmacro() # file:///path/to/build/ccov/html/index.html # macro(xo_toplevel_coverage_config2) - if (${CMAKE_BUILD_TYPE} STREQUAL "coverage") + if ("${CMAKE_BUILD_TYPE}" STREQUAL "coverage") #find_program(LCOV_EXECUTABLE NAMES lcov) #find_program(GENHTML_EXECUTABLE NAMES genhtml) # see bin/xo-cmake-lcov-harness in this repo