summaryrefslogtreecommitdiffstats
path: root/Modules/FindSquish.cmake
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@remarkable.com>2020-05-13 09:50:10 (GMT)
committerFrederik Gladhorn <frederik.gladhorn@remarkable.com>2020-05-13 09:51:27 (GMT)
commitc587b8d026031f2fd48dad8c9922f35b57eb2ea4 (patch)
tree2ba225d51c68e666a00b21e3efb342258f43acb5 /Modules/FindSquish.cmake
parentad11526dc477f988d157eb0e78327addc8e9aa5f (diff)
downloadCMake-c587b8d026031f2fd48dad8c9922f35b57eb2ea4.zip
CMake-c587b8d026031f2fd48dad8c9922f35b57eb2ea4.tar.gz
CMake-c587b8d026031f2fd48dad8c9922f35b57eb2ea4.tar.bz2
FindSquish: Fix target app name on windows
Windows has .exe in the target name, but Squish only uses the name without extension which makes things a lot easier when running tests on several platforms. Discovered when coming back to Windows and doing a fresh build and suddenly the binary to be tested was no longer found due to the name mismatch.
Diffstat (limited to 'Modules/FindSquish.cmake')
-rw-r--r--Modules/FindSquish.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindSquish.cmake b/Modules/FindSquish.cmake
index eec8876..f4d4f29 100644
--- a/Modules/FindSquish.cmake
+++ b/Modules/FindSquish.cmake
@@ -277,7 +277,7 @@ function(SQUISH_V4_ADD_TEST testName)
add_test(NAME ${testName}
COMMAND ${CMAKE_COMMAND} -V -VV
"-Dsquish_version:STRING=4"
- "-Dsquish_aut:STRING=$<TARGET_FILE_NAME:${_SQUISH_AUT}>"
+ "-Dsquish_aut:STRING=$<TARGET_FILE_BASE_NAME:${_SQUISH_AUT}>"
"-Dsquish_aut_dir:STRING=$<TARGET_FILE_DIR:${_SQUISH_AUT}>"
"-Dsquish_server_executable:STRING=${SQUISH_SERVER_EXECUTABLE}"
"-Dsquish_client_executable:STRING=${SQUISH_CLIENT_EXECUTABLE}"