summaryrefslogtreecommitdiff
path: root/Source/WXDialog/bin/FindUPX.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WXDialog/bin/FindUPX.cmake')
-rw-r--r--Source/WXDialog/bin/FindUPX.cmake11
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WXDialog/bin/FindUPX.cmake b/Source/WXDialog/bin/FindUPX.cmake
index 762384199e..fc9113dc52 100644
--- a/Source/WXDialog/bin/FindUPX.cmake
+++ b/Source/WXDialog/bin/FindUPX.cmake
@@ -5,14 +5,11 @@
# UPX_FOUND Is set to 1 when upx is found
FIND_PATH(UPX_PROGRAM_PATH upx.exe
- "c:\Program Files\upx"
- "d:\Program Files\upx"
- "e:\Program Files\upx"
- "f:\Program Files\upx"
- "g:\Program Files\upx"
- "h:\Program Files\upx"
+ ${UPX_DIR}
+ $ENV{UPX_DIR}
+ "$ENV{ProgramFiles}/upx"
)
-
+
# when found, note this as target
IF(UPX_PROGRAM_PATH)
SET(UPX_FOUND 1)