From c9d12e93c2bc14f147a0d6cb4f91c01c389f7b25 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 26 Feb 2015 00:30:06 -0500 Subject: [PATCH] cmake: remove the LOCATION query Newer CMake deprecates the property. It isn't necessary anyways since add_test will recognize targets as the executable name and make the full path automatically. --- tests/CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index c094f8235..9b4b7b3c7 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -64,12 +64,10 @@ macro(add_unit_test) endif(NOT TEST_OUTPUT) set(TEST_OUTPUT ${TEST_OUTPUT} CACHE STRING "The output to generate when running the QTest unit tests") - get_target_property(loc ${_test_NAME} LOCATION) - if(KDE4_TEST_OUTPUT STREQUAL "xml") - add_test(${_test_NAME} ${loc} -xml -o ${_test_NAME}.tml) + add_test(${_test_NAME} ${_test_NAME} -xml -o ${_test_NAME}.tml) else(KDE4_TEST_OUTPUT STREQUAL "xml") - add_test(${_test_NAME} ${loc}) + add_test(${_test_NAME} ${_test_NAME}) endif(KDE4_TEST_OUTPUT STREQUAL "xml") if(NOT MSVC_IDE) #not needed for the ide