summaryrefslogtreecommitdiff
path: root/Modules/FindSquish.cmake
diff options
context:
space:
mode:
authorFrederik Gladhorn <frederik.gladhorn@remarkable.com>2020-05-13 11:50:10 +0200
committerFrederik Gladhorn <frederik.gladhorn@remarkable.com>2020-05-13 11:51:27 +0200
commitc587b8d026031f2fd48dad8c9922f35b57eb2ea4 (patch)
tree2ba225d51c68e666a00b21e3efb342258f43acb5 /Modules/FindSquish.cmake
parentad11526dc477f988d157eb0e78327addc8e9aa5f (diff)
downloadcmake-c587b8d026031f2fd48dad8c9922f35b57eb2ea4.tar.gz
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 eec8876d3a..f4d4f29e14 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}"