FindSquish: Fix finding on Windows

The whole script looks rather dated and dusty, but it actually does find
newer Squish versions - e.g. version 6.5 here.
I assume more work is needed, but at least with this tiny patch the path
is located on Windws when the SQUISH_INSTALL_DIR environment variable is
set.
This commit is contained in:
Frederik Gladhorn
2020-04-16 23:48:05 +02:00
parent 5f20e85412
commit 0bc4fa2be2

View File

@@ -137,7 +137,8 @@ if(NOT SQUISH_INSTALL_DIR)
string(REPLACE "//" "/" SQUISH_INSTALL_DIR_SEARCH "${SQUISH_INSTALL_DIR_SEARCH}")
# Look for an installation
find_path(SQUISH_INSTALL_DIR bin/squishrunner
find_path(SQUISH_INSTALL_DIR
NAMES bin/squishrunner bin/squishrunner.exe
HINTS
# Look for an environment variable SQUISH_INSTALL_DIR.
ENV SQUISH_INSTALL_DIR