Fix case w/ empty CMAKE_BUILD_TYPE

This commit is contained in:
Raphael Coeffic
2021-09-13 16:11:03 +02:00
parent 8d70f73979
commit ed95e2af5a
+1 -1
View File
@@ -47,7 +47,7 @@ if(Qt5Widgets_FOUND)
# Remove debug symbols on release builds
if(NOT CLANG)
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release")
add_custom_command(TARGET ${SIMULATOR_TARGET} POST_BUILD
COMMAND ${CMAKE_STRIP} $<TARGET_FILE:${SIMULATOR_TARGET}>)
endif()