diff --git a/CMakeLists.txt b/CMakeLists.txt index 676db2537d0..502d932141b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -162,7 +162,7 @@ if (NOT DEFINED CMAKE_CXX_STANDARD) set(CMAKE_CXX_STANDARD 11) else() if (CMAKE_CSS_STANDARD LESS 11) - message(FATAL at least C++11 support is required) + message(FATAL_ERROR "CMAKE_CXX_STANDARD is less than 11, please specify at least SET(CMAKE_CXX_STANDARD 11)") endif() endif() if (NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED) diff --git a/templates/CMakeLists.txt.template b/templates/CMakeLists.txt.template index 291104db210..fc5d0e58165 100644 --- a/templates/CMakeLists.txt.template +++ b/templates/CMakeLists.txt.template @@ -252,7 +252,7 @@ set(CMAKE_CXX_STANDARD 11) else() if (CMAKE_CSS_STANDARD LESS 11) - message(FATAL at least C++11 support is required) + message(FATAL_ERROR "CMAKE_CXX_STANDARD is less than 11, please specify at least SET(CMAKE_CXX_STANDARD 11)") endif() endif() if (NOT DEFINED CMAKE_CXX_STANDARD_REQUIRED)