summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTest.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2014-05-12 16:21:37 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2014-05-12 16:21:37 (GMT)
commit293bcf7a6059af2293ee4d3f0509fcaf1eb66f72 (patch)
tree4a68328a871a4f88e564d84c10e3939e6e7f5f3c /Modules/FindGTest.cmake
parent58fcd57c40144ccacc990ad15a290021104bb919 (diff)
downloadCMake-293bcf7a6059af2293ee4d3f0509fcaf1eb66f72.zip
CMake-293bcf7a6059af2293ee4d3f0509fcaf1eb66f72.tar.gz
CMake-293bcf7a6059af2293ee4d3f0509fcaf1eb66f72.tar.bz2
FindGTest: use new add_test() signature (#14913)
This allows to use target names as executables.
Diffstat (limited to 'Modules/FindGTest.cmake')
-rw-r--r--Modules/FindGTest.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindGTest.cmake b/Modules/FindGTest.cmake
index 6a36ea6..e6b5b0a 100644
--- a/Modules/FindGTest.cmake
+++ b/Modules/FindGTest.cmake
@@ -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()