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

cmake: if not configured by user, enable c++14 for root7

Show correspondent status message
parent 0e2b9af8
No related merge requests found
......@@ -308,12 +308,12 @@ ROOT_APPLY_OPTIONS()
if(root7)
if(NOT CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++14 standard used with root7")
endif()
if(NOT CMAKE_CXX_STANDARD GREATER 11)
message(STATUS "Enable C++14 for compilation of root7 components")
elseif(NOT CMAKE_CXX_STANDARD GREATER 11)
message(FATAL_ERROR ">>> C++14 standard required with root7")
endif()
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 built automatically when root7 is enabled)" FORCE)
endif()
endif()
......
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