clean-up cmake

This commit is contained in:
terik23 2019-03-21 00:42:33 +05:00
parent 80a3e6d3e3
commit 51b4e52332

View file

@ -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()