From ed38fd021caab74b1812b3342078df82ee5efb11 Mon Sep 17 00:00:00 2001 From: Sven Goldberg Date: Wed, 18 Dec 2024 10:20:07 +0100 Subject: [PATCH 1/2] Update to C++17 standard and remove double def in CMake --- CMakeLists.txt | 4 ++-- src/CMakeLists.txt | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) 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/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) From 0d8b557fbb1bff85455162e74eb824a825413faf Mon Sep 17 00:00:00 2001 From: Sven Goldberg Date: Wed, 18 Dec 2024 10:29:42 +0100 Subject: [PATCH 2/2] Update ChangeLog.md --- ChangeLog.md | 5 +++++ 1 file changed, 5 insertions(+) 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: