1 parent 26ecd92 commit ed0d8f5Copy full SHA for ed0d8f5
1 file changed
tests/compile_fail/CMakeLists.txt
@@ -15,7 +15,7 @@ function(microtimer_add_compile_fail_test name source regex)
15
endif()
16
17
string(REGEX MATCH "${regex}" ${name}_MATCH "${${name}_OUTPUT}")
18
- if(NOT "${${name}_MATCH}")
+ if("${${name}_MATCH}" STREQUAL "")
19
message(FATAL_ERROR "compile-fail test '${name}' did not emit expected diagnostic")
20
21
endfunction()
0 commit comments