Skip to content
Snippets Groups Projects
Commit bd0bfc3a authored by vargheseg's avatar vargheseg
Browse files

Bugfix:

enclose CMAKE_BUILD_TYPE in quotes; this transforms it into an wmpty
string and the string command wont complain that its missing an argument
when CMAKE_BUILD_TYPE is not set.
parent efd3d21b
No related branches found
No related tags found
No related merge requests found
...@@ -30,7 +30,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 --coverage") ...@@ -30,7 +30,7 @@ set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 --coverage")
# The make coverage command is only available in debug mode. Also # The make coverage command is only available in debug mode. Also
# factor in that cmake treats CMAKE_BUILD_TYPE string as case # factor in that cmake treats CMAKE_BUILD_TYPE string as case
# insensitive. # insensitive.
string(TOUPPER ${CMAKE_BUILD_TYPE} build_type_uppercase) string(TOUPPER "${CMAKE_BUILD_TYPE}" build_type_uppercase)
IF(build_type_uppercase STREQUAL "DEBUG") IF(build_type_uppercase STREQUAL "DEBUG")
configure_file(cmake/make_coverage.sh.in configure_file(cmake/make_coverage.sh.in
${PROJECT_BINARY_DIR}/make_coverage.sh @ONLY) ${PROJECT_BINARY_DIR}/make_coverage.sh @ONLY)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment