diff options
author | Aleix Pol <aleixpol@kde.org> | 2013-10-07 19:08:25 +0200 |
---|---|---|
committer | Aleix Pol <aleixpol@kde.org> | 2013-10-07 19:08:25 +0200 |
commit | 9a97ec50b1944b4a6874b7626adb325d8dd4c180 (patch) | |
tree | 2dc231b4349b18ded8cf873008f99bce19441139 /modules/ECMAddTests.cmake | |
parent | e91065e80ad18ba866891e997e18612bf8435837 (diff) | |
download | extra-cmake-modules-9a97ec50b1944b4a6874b7626adb325d8dd4c180.tar.gz extra-cmake-modules-9a97ec50b1944b4a6874b7626adb325d8dd4c180.tar.bz2 |
Fix typo
ecm_add_test was renamed eventually, but all uses weren't adapted
Diffstat (limited to 'modules/ECMAddTests.cmake')
-rw-r--r-- | modules/ECMAddTests.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/ECMAddTests.cmake b/modules/ECMAddTests.cmake index b65e68eb..41a54066 100644 --- a/modules/ECMAddTests.cmake +++ b/modules/ECMAddTests.cmake @@ -33,8 +33,10 @@ function(ecm_add_test) get_filename_component(_testname ${_sources} NAME_WE) else() #more than one source file passed, but no test name given -> error - message(FATAL_ERROR "ecm_add_unit_test() called with multiple source files but without setting \"TEST_NAME\"") + message(FATAL_ERROR "ecm_add_test() called with multiple source files but without setting \"TEST_NAME\"") endif() + + message("-------- ${_testname}") set(_testname "${ECM_ADD_TEST_NAME_PREFIX}${_testname}") add_executable(${_testname} ${_sources}) add_test(${_testname} ${_testname}) @@ -47,7 +49,7 @@ function(ecm_add_tests) set(multiValueArgs LINK_LIBRARIES) cmake_parse_arguments(ECM_ADD_TESTS "" "${oneValueArgs}" "${multiValueArgs}" ${ARGN}) foreach(_test_source ${ECM_ADD_TESTS_UNPARSED_ARGUMENTS}) - ecm_add_unit_test(${_test_source} + ecm_add_test(${_test_source} NAME_PREFIX ${ECM_ADD_TESTS_NAME_PREFIX} LINK_LIBRARIES ${ECM_ADD_TESTS_LINK_LIBRARIES} ) |