diff --git a/CMakeLists.txt b/CMakeLists.txt index dfff8939e..eb76e76f6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,8 +12,8 @@ cmake_minimum_required (VERSION 3.11.0) project (TIGL VERSION 3.4.0) set(TIGL_VERSION 3.4.0) -# enable C++11 support -set(CMAKE_CXX_STANDARD 11) +# enable C++17 support +set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) diff --git a/ChangeLog.md b/ChangeLog.md index 33425e3bd..9bafbbf6d 100644 --- a/ChangeLog.md +++ b/ChangeLog.md @@ -3,6 +3,11 @@ Changelog Changes since last release ------------- +18/12/2024 + + - General changes: + - Update the C++ standard to C++17 (#1045). + 13/11/2024 - Fixes: diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cf3ea15d4..df4d6703f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -79,7 +79,6 @@ endforeach() # object library containing just the compiled sources add_library(tigl3_objects OBJECT ${TIGL_SRC}) -target_compile_features(tigl3_objects PRIVATE cxx_std_11) set_property(TARGET tigl3_objects PROPERTY POSITION_INDEPENDENT_CODE ON) # needed for shared libraries target_include_directories(tigl3_objects @@ -208,7 +207,6 @@ target_include_directories(tigl3_cpp INTERFACE ) target_link_libraries(tigl3_cpp INTERFACE ${OpenCASCADE_LIBRARIES} Boost::boost Boost::disable_autolinking) -target_compile_features(tigl3_cpp INTERFACE cxx_std_11) if (TARGET glog::glog) target_link_libraries (tigl3_cpp INTERFACE glog::glog)