Commit 05d761fd authored by Bednárek David RNDr. Ph.D.'s avatar Bednárek David RNDr. Ph.D.
Browse files

Corrected undefined CMAKE_BUILD_TYPE handling

parent da42ae06
......@@ -72,7 +72,8 @@ if(NOT DEFINED GOLD_SUFFIX)
endif()
function(TARGET_GOLD_SOURCES TARGET PREFIX)
if(${CMAKE_BUILD_TYPE} MATCHES "Debug")
#message("CMAKE_BUILD_TYPE=\"${CMAKE_BUILD_TYPE}\"")
if(CMAKE_BUILD_TYPE MATCHES "^(Debug|)$")
message("Using gold check file ${PREFIX}debug.cpp")
target_sources(${TARGET} PUBLIC "${PREFIX}debug.cpp")
else()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment