diff options
author | Patrick Spendrin <ps_ml@gmx.de> | 2014-05-09 23:41:01 +0200 |
---|---|---|
committer | Patrick Spendrin <ps_ml@gmx.de> | 2014-05-09 23:41:01 +0200 |
commit | b90b64632f46e929f26ab9a4ee0033478febe0eb (patch) | |
tree | 88b44e1172c3df4da3fb78eaf2f4138f4ff7b82c /modules | |
parent | dea1b8759f37d1462236ddd43ee9dfb47670817a (diff) | |
download | extra-cmake-modules-b90b64632f46e929f26ab9a4ee0033478febe0eb.tar.gz extra-cmake-modules-b90b64632f46e929f26ab9a4ee0033478febe0eb.tar.bz2 |
use the NAME_PREFIX only for the test, not for the executable
Diffstat (limited to 'modules')
-rw-r--r-- | modules/ECMAddTests.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake index 6cc20b65..d60d069b 100644 --- a/modules/ECMAddTests.cmake +++ b/modules/ECMAddTests.cmake @@ -63,12 +63,11 @@ 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 ${_testname} COMMAND ${_testname}) + add_test(NAME "${ECM_ADD_TEST_NAME_PREFIX}${_testname} COMMAND ${_testname}) target_link_libraries(${_testname} ${ECM_ADD_TEST_LINK_LIBRARIES}) ecm_mark_as_test(${_testname}) endfunction() |