From 7213137a75e832976c25168ae640d26369c771a7 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Sat, 10 May 2014 11:26:26 +0100 Subject: Revert "use the NAME_PREFIX only for the test, not for the executable" This reverts commits b90b64632f46e929f26ab9a4ee0033478febe0eb ba8600088b8838d5453dd0990ec595e904ec216e 554be62af6d0f01049985076b2445229bae41816 These were causing configure failures in frameworks that use ECMAddTests. CCMAIL: ps_ml@gmx.de CCMAIL: kde-frameworks-devel@kde.org --- modules/ECMAddTests.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/ECMAddTests.cmake') diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake index 911476cb..6cc20b65 100644 --- a/modules/ECMAddTests.cmake +++ b/modules/ECMAddTests.cmake @@ -63,11 +63,12 @@ function(ecm_add_test) message(FATAL_ERROR "ecm_add_test() called with multiple source files but without setting \"TEST_NAME\"") endif() + set(_testname "${ECM_ADD_TEST_NAME_PREFIX}${_testname}") add_executable(${_testname} ${_sources}) if(NOT ECM_ADD_TEST_GUI) ecm_mark_nongui_executable(${_testname}) endif() - add_test(NAME "${ECM_ADD_TEST_NAME_PREFIX}${_testname}" COMMAND ${_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