aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalf Habacker <ralf.habacker@freenet.de>2007-04-13 16:00:47 +0000
committerRalf Habacker <ralf.habacker@freenet.de>2007-04-13 16:00:47 +0000
commit18c4ff6bdfa3ea3973338ed7d38e1ad9398f2084 (patch)
treeed265638f11616c758bc48069c5b977e24a8811d
parent9f381b0433fd1301bc85c2be764d32772568d857 (diff)
downloadextra-cmake-modules-18c4ff6bdfa3ea3973338ed7d38e1ad9398f2084.tar.gz
extra-cmake-modules-18c4ff6bdfa3ea3973338ed7d38e1ad9398f2084.tar.bz2
- avoid search in PATH environment variable, which results in using kdewin32.dll instead of relating dll.a on mingw
svn path=/trunk/KDE/kdelibs/; revision=653552
-rw-r--r--modules/FindKDEWIN32.cmake8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/FindKDEWIN32.cmake b/modules/FindKDEWIN32.cmake
index 5ecb13fe..8ac3fe58 100644
--- a/modules/FindKDEWIN32.cmake
+++ b/modules/FindKDEWIN32.cmake
@@ -1,5 +1,5 @@
# - Try to find the directory in which the kdewin32 library and other win32 related libraries lives
-#
+#
# Once done this will define
#
# KDEWIN32_FOUND - system has KDEWIN32
@@ -43,8 +43,9 @@ if (WIN32)
find_library(KDEWIN32_LIBRARY_RELEASE NAMES kdewin32
PATHS
- ${KDEWIN32_DIR}/lib
- ${CMAKE_INSTALL_PREFIX}/lib
+ ${KDEWIN32_DIR}/lib
+ ${CMAKE_INSTALL_PREFIX}/lib
+ NO_SYSTEM_ENVIRONMENT_PATH
)
# msvc makes a difference between debug and release
@@ -53,6 +54,7 @@ if (WIN32)
PATHS
${KDEWIN32_DIR}/lib
${CMAKE_INSTALL_PREFIX}/lib
+ NO_SYSTEM_ENVIRONMENT_PATH
)
if(MSVC_IDE)
# the ide needs the debug and release version