mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-17 20:20:23 -06:00
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:
@@ -137,7 +137,8 @@ if(NOT SQUISH_INSTALL_DIR)
|
|||||||
string(REPLACE "//" "/" SQUISH_INSTALL_DIR_SEARCH "${SQUISH_INSTALL_DIR_SEARCH}")
|
string(REPLACE "//" "/" SQUISH_INSTALL_DIR_SEARCH "${SQUISH_INSTALL_DIR_SEARCH}")
|
||||||
|
|
||||||
# Look for an installation
|
# Look for an installation
|
||||||
find_path(SQUISH_INSTALL_DIR bin/squishrunner
|
find_path(SQUISH_INSTALL_DIR
|
||||||
|
NAMES bin/squishrunner bin/squishrunner.exe
|
||||||
HINTS
|
HINTS
|
||||||
# Look for an environment variable SQUISH_INSTALL_DIR.
|
# Look for an environment variable SQUISH_INSTALL_DIR.
|
||||||
ENV SQUISH_INSTALL_DIR
|
ENV SQUISH_INSTALL_DIR
|
||||||
|
|||||||
Reference in New Issue
Block a user