aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/ECMAddTests.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake
index 9052d886..6cc20b65 100644
--- a/modules/ECMAddTests.cmake
+++ b/modules/ECMAddTests.cmake
@@ -68,7 +68,7 @@ function(ecm_add_test)
if(NOT ECM_ADD_TEST_GUI)
ecm_mark_nongui_executable(${_testname})
endif()
- add_test(${_testname} ${_testname})
+ add_test(NAME ${_testname} COMMAND ${_testname})
target_link_libraries(${_testname} ${ECM_ADD_TEST_LINK_LIBRARIES})
ecm_mark_as_test(${_testname})
endfunction()