diff --git a/tests/utility/CMakeLists.txt b/tests/utility/CMakeLists.txt index 502bc13c1..3c85d268d 100644 --- a/tests/utility/CMakeLists.txt +++ b/tests/utility/CMakeLists.txt @@ -41,7 +41,7 @@ add_test( NAME ${PROJECT_NAME}-doctest COMMAND ${PROJECT_NAME}-doctest ) -target_compile_features(${PROJECT_NAME}-doctest PRIVATE cxx_std_17) +target_compile_options(${PROJECT_NAME}-doctest PRIVATE -std=c++17) if (doctest_FOUND) target_link_libraries(${PROJECT_NAME}-doctest PRIVATE doctest::doctest) endif()