From c1a29af66251bfe372d3c28de1b7822af51561c4 Mon Sep 17 00:00:00 2001 From: Adrian Imboden Date: Sat, 16 May 2020 14:04:16 +0200 Subject: [PATCH] updated error message when c++ standard is not high enough --- CMakeLists.txt | 2 +- templates/CMakeLists.txt.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)