mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-26 15:59:50 -05:00
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.
This commit is contained in:
parent
835c411d12
commit
c9d12e93c2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user