From df8debfd53b4c6e4be512a019a4266e345256ced Mon Sep 17 00:00:00 2001 From: Olivier Georget Date: Thu, 5 Jun 2025 14:34:43 +0200 Subject: [PATCH 1/2] fix(test): Align GTest dependency with c++14 default language level latest Gtest versions (post 1.16), require c++17. This is creating conflicts between std and nonstd facilities (optional in particular). --- thirdparty/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt index 57c8f8ee..1062e19c 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt @@ -62,7 +62,8 @@ if(JINJA2CPP_BUILD_TESTS) FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG main + GIT_TAG v1.16.0 # After 1.16, GTest enforce c++17 which conflict with + # current c++14 default language level ) FetchContent_MakeAvailable(googletest) endif() From 9b3c70df54c4ab40656db23de19fafdfbf8078b5 Mon Sep 17 00:00:00 2001 From: Olivier Georget Date: Thu, 5 Jun 2025 15:51:38 +0200 Subject: [PATCH 2/2] fix(CI): Replace old versions of clang-12/13 with clang-15/16 --- .github/workflows/linux-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 769ad56e..05cde91b 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -26,7 +26,7 @@ jobs: fail-fast: false max-parallel: 8 matrix: - compiler: [g++-9, g++-10, g++-11, clang++-12, clang++-13, clang++-14] + compiler: [g++-9, g++-10, g++-11, clang++-14, clang++-15, clang++-16] base-flags: ["", -DJINJA2CPP_CXX_STANDARD=17] build-config: [Release, Debug] build-shared: [TRUE, FALSE]