diff --git a/.github/workflows/codecov-upload.yml b/.github/workflows/codecov-upload.yml index e4bff5f72..473613c7b 100644 --- a/.github/workflows/codecov-upload.yml +++ b/.github/workflows/codecov-upload.yml @@ -28,7 +28,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D ENABLE_TESTING:BOOL=TRUE -D ENABLE_COVERAGE:BOOL=TRUE -S . -B build diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index b4796bb0c..45d1624ba 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -67,7 +67,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake --preset=build diff --git a/.github/workflows/linux-clang-pkgx.yml b/.github/workflows/linux-clang-pkgx.yml index 22c3a9b21..b06a28dd6 100644 --- a/.github/workflows/linux-clang-pkgx.yml +++ b/.github/workflows/linux-clang-pkgx.yml @@ -27,7 +27,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake --preset=build diff --git a/.github/workflows/linux-clang.yml b/.github/workflows/linux-clang.yml index b849a02dd..ccc4abadc 100644 --- a/.github/workflows/linux-clang.yml +++ b/.github/workflows/linux-clang.yml @@ -27,7 +27,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake --preset=build diff --git a/.github/workflows/linux-gcc.yml b/.github/workflows/linux-gcc.yml index 06a73fca2..165508f11 100644 --- a/.github/workflows/linux-gcc.yml +++ b/.github/workflows/linux-gcc.yml @@ -27,7 +27,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake --preset=build diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index d407ca17d..37fbadef1 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -19,7 +19,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake --preset=build diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index f008f0389..81e4da88c 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -31,7 +31,7 @@ jobs: - name: Restore artifacts or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Configure run: cmake -G Ninja -D CMAKE_BUILD_TYPE=RelWithDebInfo -D ENABLE_TESTING:BOOL=TRUE -D ENABLE_COVERAGE:BOOL=TRUE -S . -B build diff --git a/.github/workflows/windows-msvc.yml b/.github/workflows/windows-msvc.yml index 15abbcb27..aabc8c0f2 100644 --- a/.github/workflows/windows-msvc.yml +++ b/.github/workflows/windows-msvc.yml @@ -24,7 +24,7 @@ jobs: - name: Restore artifacts, or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Install vcpkg packages and configure CMake run: | diff --git a/.github/workflows/windows-pkgx.yml b/.github/workflows/windows-pkgx.yml index 9fb580b1f..f59372345 100644 --- a/.github/workflows/windows-pkgx.yml +++ b/.github/workflows/windows-pkgx.yml @@ -24,7 +24,7 @@ jobs: - name: Restore artifacts, or setup vcpkg uses: lukka/run-vcpkg@v11 with: - vcpkgGitCommitId: ae360361a434310ffee36d84eb01c033b648fb22 + vcpkgGitCommitId: 3265c187c74914aa5569b75355badebfdbab7987 - name: Install vcpkg packages and configure CMake run: | diff --git a/CMakePresets.json b/CMakePresets.json index 562a1a767..b24f8f3f1 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -35,7 +35,7 @@ "binaryDir": "${sourceDir}/build", "cacheVariables": { "CMAKE_CXX_EXTENSIONS": "OFF", - "CMAKE_CXX_STANDARD": "20", + "CMAKE_CXX_STANDARD": "23", "CMAKE_CXX_STANDARD_REQUIRED": "ON" } }, diff --git a/README.md b/README.md index 8773a95f5..b308f5deb 100644 --- a/README.md +++ b/README.md @@ -284,16 +284,16 @@ If you do not have GraphViz installed, set this option to **NO** In the `scripts` directory, run `build.sh` or `build.bat` depending on your operating system. -Unit tests run (in `build/tests` or `build\tests\Debug`) via `CDT_test`, the [doctest] executable: +Unit tests run (in `build/tests` or `build\tests\Debug`) via `CDT_unit_tests`, the [doctest] executable: ~~~bash -./CDT_test +./CDT_unit_tests ~~~ or (Windows): ~~~cmd -CDT_test.exe +CDT_unit_tests.exe ~~~ You can also run both [CTest] integration and [doctest] unit tests in the `build` directory with: diff --git a/cmake/StandardProjectSettings.cmake b/cmake/StandardProjectSettings.cmake index 71f29a853..b572784fd 100644 --- a/cmake/StandardProjectSettings.cmake +++ b/cmake/StandardProjectSettings.cmake @@ -38,8 +38,8 @@ endif() # Set minimum Boost version set(BOOST_MIN_VERSION "1.75.0") -# Use C++20 -set(CMAKE_CXX_STANDARD 20) +# Use C++23 +set(CMAKE_CXX_STANDARD 23) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 7f42896c0..67590809d 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,5 @@ add_executable( - CDT_test + CDT_unit_tests ${PROJECT_SOURCE_DIR}/tests/main.cpp Apply_move_test.cpp Ergodic_moves_3_test.cpp @@ -18,9 +18,9 @@ add_executable( Utilities_test.cpp Vertex_test.cpp) # Activate C++20 features -target_compile_features(CDT_test PRIVATE cxx_std_20) +target_compile_features(CDT_unit_tests PRIVATE cxx_std_20) target_link_libraries( - CDT_test + CDT_unit_tests PRIVATE project_options project_warnings date::date-tz @@ -29,4 +29,4 @@ target_link_libraries( CGAL::CGAL) # Run unit tests -add_test(NAME cdt-unit-tests COMMAND $) +add_test(NAME cdt-unit-tests COMMAND $)