mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
FindGTest: use new add_test() signature (#14913)
This allows to use target names as executables.
This commit is contained in:
@@ -134,7 +134,7 @@ function(GTEST_ADD_TESTS executable extra_args)
|
||||
message(WARNING "Could not parse GTest ${hit} for adding to CTest.")
|
||||
continue()
|
||||
endif()
|
||||
add_test(${test_name} ${executable} --gtest_filter=${test_name} ${extra_args})
|
||||
add_test(NAME ${test_name} COMMAND ${executable} --gtest_filter=${test_name} ${extra_args})
|
||||
endforeach()
|
||||
endforeach()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user