From f380dc3daa470d3fec8fab7ee9dd340482b9a173 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Tue, 7 Jan 2014 17:04:39 -0800 Subject: [PATCH] Fix error reporting. --- test/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 96757ec2..1ce7cb0e 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -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 ()