aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/FindGNUWIN32.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/FindGNUWIN32.cmake b/modules/FindGNUWIN32.cmake
index ebd27bba..622fd3cf 100644
--- a/modules/FindGNUWIN32.cmake
+++ b/modules/FindGNUWIN32.cmake
@@ -4,19 +4,21 @@ INCLUDE(MacroGetenvWinPath)
MACRO_GETENV_WIN_PATH(_progFiles PROGRAMFILES)
-FIND_FILE(GNUWIN32_DIR GNUWIN32
+FIND_FILE(GNUWIN32_DIR gnuwin32
${_progFiles}
"C:/"
)
-if (GNUWIN32_DIRECTORY)
+if (GNUWIN32_DIR)
set(GNUWIN32_INCLUDE_DIR ${GNUWIN32_DIR}/include)
set(GNUWIN32_LIBRARY_DIR ${GNUWIN32_DIR}/lib)
set(GNUWIN32_BINARY_DIR ${GNUWIN32_DIR}/bin)
+ set(CMAKE_INCLUDE_PATH ${CMAKE_INCLUDE_PATH} ${GNUWIN32_INCLUDE_DIR})
+ set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} ${GNUWIN32_LIBRARY_DIR})
set(GNUWIN32_FOUND TRUE)
-else (GNUWIN32_DIRECTORY)
+else (GNUWIN32_DIR)
set(GNUWIN32_FOUND)
-endif (GNUWIN32_DIRECTORY)
+endif (GNUWIN32_DIR)
if (GNUWIN32_FOUND)
if (NOT GNUWIN32_FIND_QUIETLY)