diff options
-rw-r--r-- | Modules/FindGTest.cmake | 2 |
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() |