diff options
author | Peter Kümmel <syntheticpp@gmx.net> | 2006-09-03 09:25:24 +0000 |
---|---|---|
committer | Peter Kümmel <syntheticpp@gmx.net> | 2006-09-03 09:25:24 +0000 |
commit | c99365da4c6c17188fb498ee80aec60de17611c9 (patch) | |
tree | 9580153df32e909f413e06d23e90720037605cab /modules | |
parent | a850906cc278c5a24fc8eb2546343db504da1239 (diff) | |
download | extra-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
Diffstat (limited to 'modules')
-rw-r--r-- | modules/FindGNUWIN32.cmake | 4 |
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} |