From e9e6c0db0f483f2cdbceb69cbb76974189e15cde Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 8 Apr 2006 22:25:22 +0000 Subject: fixed gnuwin32 detection svn path=/trunk/KDE/kdelibs/; revision=527629 --- modules/FindGNUWIN32.cmake | 10 ++++++---- 1 file 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) -- cgit v1.2.1