Use FATAL_ERROR instead of FATAL, so that CMake will actually crash when C++11

isn't available.
This commit is contained in:
Ryan Curtin
2014-11-05 23:31:03 +00:00
parent cc107014cd
commit 6c4e8ffcb6
+1 -1
View File
@@ -5,7 +5,7 @@ project(mlpack C CXX)
include(CMake/CXX11.cmake)
check_for_cxx11_compiler(HAS_CXX11)
if(NOT HAS_CXX11)
message(FATAL "No C++11 compiler available!")
message(FATAL_ERROR "No C++11 compiler available!")
endif(NOT HAS_CXX11)
enable_cxx11()