Skip to content

Commit

Permalink
add cpp standard flag to cmake (#3684)
Browse files Browse the repository at this point in the history
add DCMAKE_CXX_STANDARD flag

See documentation in CMake.
https://cmake.org/cmake/help/latest/prop_tgt/CXX_STANDARD.html
  • Loading branch information
felixschurk authored Nov 15, 2024
1 parent 8cc4c46 commit 01ced32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: actions/[email protected]

- 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
Expand Down

0 comments on commit 01ced32

Please sign in to comment.