updated error message when c++ standard is not high enough

pull/22938/head
Adrian Imboden 5 years ago
parent 6bef561099
commit c1a29af662
  1. 2
      CMakeLists.txt
  2. 2
      templates/CMakeLists.txt.template

@ -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)

@ -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)

Loading…
Cancel
Save