clean-up cmake
This commit is contained in:
parent
80a3e6d3e3
commit
51b4e52332
1 changed files with 3 additions and 3 deletions
|
@ -69,11 +69,11 @@ function(make_target target std)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
if(HAS_CPP17_FLAG)
|
if(HAS_CPP17_FLAG)
|
||||||
set(std17 c++17)
|
|
||||||
if(CMAKE_CXX_COMPILER_ID MATCHES "AppleClang")
|
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()
|
endif()
|
||||||
make_target(${CMAKE_PROJECT_NAME}-cpp17.t ${std17})
|
|
||||||
add_test(NAME ${CMAKE_PROJECT_NAME}-cpp17.t COMMAND ${CMAKE_PROJECT_NAME}-cpp17.t)
|
add_test(NAME ${CMAKE_PROJECT_NAME}-cpp17.t COMMAND ${CMAKE_PROJECT_NAME}-cpp17.t)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue