Added ctest labels for FE tests only if FW is found (#20483)

This commit is contained in:
Ilya Lavrenov
2023-10-16 16:29:37 +04:00
committed by GitHub
parent a5b5623ece
commit e812831346
5 changed files with 49 additions and 32 deletions

View File

@@ -172,7 +172,9 @@ function(ov_add_test_target)
else()
add_test(NAME ${ARG_NAME} COMMAND ${ARG_NAME})
endif()
set_property(TEST ${ARG_NAME} PROPERTY LABELS ${ARG_LABELS})
if(ARG_LABELS)
set_property(TEST ${ARG_NAME} PROPERTY LABELS ${ARG_LABELS})
endif()
install(TARGETS ${ARG_NAME}
RUNTIME DESTINATION tests