aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@kde.org>2014-05-10 11:26:26 +0100
committerAlex Merry <alex.merry@kde.org>2014-05-10 11:28:04 +0100
commit7213137a75e832976c25168ae640d26369c771a7 (patch)
tree0958bcfa6afa36a2ec58985c69a0c315488f2a47 /modules
parent554be62af6d0f01049985076b2445229bae41816 (diff)
downloadextra-cmake-modules-7213137a75e832976c25168ae640d26369c771a7.tar.gz
extra-cmake-modules-7213137a75e832976c25168ae640d26369c771a7.tar.bz2
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
Diffstat (limited to 'modules')
-rw-r--r--modules/ECMAddTests.cmake3
1 files changed, 2 insertions, 1 deletions
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()