From 51b4e5233266a65693b87b456c1f2bebbafa49e6 Mon Sep 17 00:00:00 2001 From: terik23 Date: Thu, 21 Mar 2019 00:42:33 +0500 Subject: [PATCH] clean-up cmake --- test/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()