diff options
author | Alex Neundorf <neundorf@kde.org> | 2012-11-07 16:48:53 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2012-11-07 16:48:53 (GMT) |
commit | b58fd6569a57213299762a9ca04569650e9b7ffa (patch) | |
tree | f83075568b1461a05353b66ffd8b38a61003fd81 /Modules | |
parent | 3a0ffa6225ec4b6f95dc691a91dec7f7e04cb7ec (diff) | |
download | CMake-b58fd6569a57213299762a9ca04569650e9b7ffa.zip CMake-b58fd6569a57213299762a9ca04569650e9b7ffa.tar.gz CMake-b58fd6569a57213299762a9ca04569650e9b7ffa.tar.bz2 |
Squish: fix new squish_v4_add_test() macro
The OUTPUT_NAME target property only returns something if it has been
explicitely set. So use LOCATION, and extract the filename from that.
Alex
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindSquish.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSquish.cmake b/Modules/FindSquish.cmake index ad72958..b797805 100644 --- a/Modules/FindSquish.cmake +++ b/Modules/FindSquish.cmake @@ -221,7 +221,7 @@ function(SQUISH_V4_ADD_TEST testName) get_target_property(testAUTLocation ${_SQUISH_AUT} LOCATION) get_filename_component(testAUTDir ${testAUTLocation} PATH) - get_target_property(testAUTName ${_SQUISH_AUT} OUTPUT_NAME) + get_filename_component(testAUTName ${testAUTLocation} NAME) get_filename_component(absTestSuite "${_SQUISH_SUITE}" ABSOLUTE) if(NOT EXISTS "${absTestSuite}") |