This commit is contained in:
Neargye 2018-09-03 19:42:16 +05:00
parent 66a9c057f9
commit 471f3f3ca0

View file

@ -69,11 +69,11 @@ if(HAS_CPP11_FLAG)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC") elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
make_target(nameof-cpp11.t "") make_target(nameof-cpp11.t "")
endif() endif()
add_test(NAME test-cpp11 COMMAND nameof-cpp11.t) add_test(NAME nameof-cpp11.t COMMAND nameof-cpp11.t)
if(HAS_CPP14_FLAG) if(HAS_CPP14_FLAG)
make_target(nameof-cpp14.t c++14) make_target(nameof-cpp14.t c++14)
add_test(NAME test-cpp14 COMMAND nameof-cpp14.t) add_test(NAME nameof-cpp14.t COMMAND nameof-cpp14.t)
endif() endif()
if(HAS_CPP17_FLAG) if(HAS_CPP17_FLAG)
@ -82,10 +82,10 @@ if(HAS_CPP17_FLAG)
set(std17 c++1z) set(std17 c++1z)
endif() endif()
make_target(nameof-cpp17.t ${std17}) make_target(nameof-cpp17.t ${std17})
add_test(NAME test-cpp17 COMMAND nameof-cpp17.t) add_test(NAME nameof-cpp17.t COMMAND nameof-cpp17.t)
endif() endif()
if(HAS_CPPLATEST_FLAG) if(HAS_CPPLATEST_FLAG)
make_target(nameof-cpplatest.t c++latest) make_target(nameof-cpplatest.t c++latest)
add_test(NAME test-cpplatest COMMAND nameof-cpplatest.t) add_test(NAME nameof-cpplatest.t COMMAND nameof-cpplatest.t)
endif() endif()