Skip to content
Snippets Groups Projects
Commit a8ba1fb7 authored by Mark de Wever's avatar Mark de Wever
Browse files

AST-850 Use C++17

parent 8d9b7a7a
No related branches found
No related tags found
1 merge request!209AST-850 Use C++17
Pipeline #28222 passed with warnings
...@@ -147,7 +147,7 @@ SpacesInContainerLiterals: true ...@@ -147,7 +147,7 @@ SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false SpacesInCStyleCastParentheses: false
SpacesInParentheses: false SpacesInParentheses: false
SpacesInSquareBrackets: false SpacesInSquareBrackets: false
Standard: c++11 Standard: c++17
StatementMacros: StatementMacros:
- Q_UNUSED - Q_UNUSED
- QT_REQUIRE_VERSION - QT_REQUIRE_VERSION
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Top level CMakeLists.txt file for EveryBeam # Top level CMakeLists.txt file for EveryBeam
cmake_minimum_required(VERSION 3.7) cmake_minimum_required(VERSION 3.8)
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
# Set version name and project number # Set version name and project number
...@@ -118,7 +118,10 @@ if(POLICY CMP0074) ...@@ -118,7 +118,10 @@ if(POLICY CMP0074)
endif() endif()
# Set compile options # Set compile options
add_compile_options(-std=c++11 "${OpenMP_CXX_FLAGS}" -Wall) set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED YES)
set(CMAKE_CXX_EXTENSIONS NO)
add_compile_options("${OpenMP_CXX_FLAGS}" -Wall)
string(APPEND CMAKE_SHARED_LINKER_FLAGS " -Wl,--no-undefined") string(APPEND CMAKE_SHARED_LINKER_FLAGS " -Wl,--no-undefined")
if(NOT CMAKE_BUILD_TYPE MATCHES Debug) if(NOT CMAKE_BUILD_TYPE MATCHES Debug)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment