Skip to content
Snippets Groups Projects
Commit 0e2b9af8 authored by Sergey Linev's avatar Sergey Linev Committed by Axel Naumann
Browse files

cmake: set c++14 for root7 if not specified before, otherwise fail

parent 00006a2b
No related branches found
No related tags found
No related merge requests found
...@@ -306,8 +306,11 @@ endif() ...@@ -306,8 +306,11 @@ endif()
ROOT_APPLY_OPTIONS() ROOT_APPLY_OPTIONS()
if(root7) if(root7)
if(NOT CMAKE_CXX_STANDARD GREATER 11) if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++14 standard used with root7") set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++14 standard used with root7")
endif()
if(NOT CMAKE_CXX_STANDARD GREATER 11)
message(FATAL_ERROR ">>> C++14 standard required with root7")
endif() endif()
if(NOT webui AND NOT webui_disabled) if(NOT webui AND NOT webui_disabled)
set(webui ON CACHE BOOL "(webui build automatically when root7 is enabled)" FORCE) set(webui ON CACHE BOOL "(webui build automatically when root7 is enabled)" FORCE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment