diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index dc57320..abfa06d 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -69,11 +69,11 @@ function(make_target target std) endfunction() if(HAS_CPP17_FLAG) - set(std17 c++17) if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang") - set(std17 c++1z) + make_target(${CMAKE_PROJECT_NAME}-cpp17.t c++1z) + else() + make_target(${CMAKE_PROJECT_NAME}-cpp17.t c++17) endif() - make_target(${CMAKE_PROJECT_NAME}-cpp17.t ${std17}) add_test(NAME ${CMAKE_PROJECT_NAME}-cpp17.t COMMAND ${CMAKE_PROJECT_NAME}-cpp17.t) endif()