diff --git a/cmake/generic.cmake b/cmake/generic.cmake index f3d10b57d9f52e12332acc75ea43192b4e5bafb8..197d12e7ad8722ee1092bedd468c02e89ed16bf6 100644 --- a/cmake/generic.cmake +++ b/cmake/generic.cmake @@ -431,6 +431,8 @@ function(cc_test_run TARGET_NAME) if (APPLE) set_tests_properties(${TARGET_NAME} PROPERTIES TIMEOUT 20) endif() + elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME}) + add_test(NAME ${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E echo CI skip ${TARGET_NAME}.) endif() endfunction() @@ -459,6 +461,8 @@ function(cc_test TARGET_NAME) COMMAND ${TARGET_NAME} ARGS ${cc_test_ARGS}) endif() + elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME}) + add_test(NAME ${TARGET_NAME} COMMAND ${CMAKE_COMMAND} -E echo CI skip ${TARGET_NAME}.) endif() endfunction(cc_test)