aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2006-09-03 09:25:24 +0000
committerPeter Kümmel <syntheticpp@gmx.net>2006-09-03 09:25:24 +0000
commitc99365da4c6c17188fb498ee80aec60de17611c9 (patch)
tree9580153df32e909f413e06d23e90720037605cab
parenta850906cc278c5a24fc8eb2546343db504da1239 (diff)
downloadextra-cmake-modules-c99365da4c6c17188fb498ee80aec60de17611c9.tar.gz
extra-cmake-modules-c99365da4c6c17188fb498ee80aec60de17611c9.tar.bz2
search only in the case when GNUWIN32_DIR is not set
svn path=/trunk/KDE/kdelibs/; revision=580319
-rw-r--r--modules/FindGNUWIN32.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/FindGNUWIN32.cmake b/modules/FindGNUWIN32.cmake
index f618b074..58578a0f 100644
--- a/modules/FindGNUWIN32.cmake
+++ b/modules/FindGNUWIN32.cmake
@@ -1,6 +1,8 @@
if (WIN32)
-file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
+if(NOT GNUWIN32_DIR)
+ file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _progFiles)
+endif(NOT GNUWIN32_DIR)
find_file(GNUWIN32_DIR gnuwin32 win32libs PATHS
${_progFiles}