Skip to content
Snippets Groups Projects
Commit a8cec4bf authored by Andre Sailer's avatar Andre Sailer
Browse files

Cmake: ensure at least cxx 14

parent 6e20c060
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,14 @@ ENDIF()
ENABLE_LANGUAGE(CXX)
# Set C++ standard
set(CMAKE_CXX_STANDARD 11 CACHE STRING "C++ standard used for compiling")
set(CMAKE_CXX_STANDARD 14 CACHE STRING "C++ standard used for compiling")
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
IF(${CMAKE_CXX_STANDARD} LESS 14)
MESSAGE(FATAL_ERROR "DD4hep requires at least CXX Standard 14 to compile")
ENDIF()
###############################
# Define DD4hep build options #
###############################
......
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