Fix error reporting.

This commit is contained in:
Victor Zverovich 2014-01-07 17:04:39 -08:00
parent 9fad54a821
commit f380dc3daa

View File

@ -17,7 +17,7 @@ function (expect_compile_error code)
# just use cached information next time it runs.
unset(compiles CACHE)
if (does_compile)
error("No compile error for: ${code}")
message(FATAL_ERROR "No compile error for: ${code}")
endif ()
endfunction ()