From 01ced3238e87b71647fcdf8179907524e97ff54a Mon Sep 17 00:00:00 2001 From: Felix Schurk <75752337+felixschurk@users.noreply.github.com> Date: Fri, 15 Nov 2024 22:32:05 +0100 Subject: [PATCH] add cpp standard flag to cmake (#3684) add DCMAKE_CXX_STANDARD flag See documentation in CMake. https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html --- .github/workflows/tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 656dc6f96..69024309e 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -14,7 +14,7 @@ jobs: uses: actions/checkout@v4.1.6 - name: Configure project - run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=--coverage + run: cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS=--coverage -DCMAKE_CXX_STANDARD=17 - name: Build project run: cmake --build build --target test_runner --target task_executable