From c99365da4c6c17188fb498ee80aec60de17611c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Sun, 3 Sep 2006 09:25:24 +0000 Subject: search only in the case when GNUWIN32_DIR is not set svn path=/trunk/KDE/kdelibs/; revision=580319 --- modules/FindGNUWIN32.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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} -- cgit v1.2.1