From 6a19158806f831737e255524c047c0e44af327d2 Mon Sep 17 00:00:00 2001 From: Patrick Spendrin Date: Sat, 3 May 2014 01:29:12 +0200 Subject: use different syntax to run the target in question instead of an executable in the path --- modules/ECMAddTests.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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() -- cgit v1.2.1