From 293bcf7a6059af2293ee4d3f0509fcaf1eb66f72 Mon Sep 17 00:00:00 2001 From: Rolf Eike Beer Date: Mon, 12 May 2014 18:21:37 +0200 Subject: FindGTest: use new add_test() signature (#14913) This allows to use target names as executables. --- Modules/FindGTest.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v0.12