aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2006-07-13 13:14:26 +0000
committerPeter Kümmel <syntheticpp@gmx.net>2006-07-13 13:14:26 +0000
commit3ee8f55fc4ef03d3c164bf1ce451dacd881cb3f3 (patch)
treea8c8a61d1fd0601f7414ca21d0cd6dded5df9f95
parentfd3a1772eded684647d10ac39f4eb2ef14ec0d9c (diff)
downloadextra-cmake-modules-3ee8f55fc4ef03d3c164bf1ce451dacd881cb3f3.tar.gz
extra-cmake-modules-3ee8f55fc4ef03d3c164bf1ce451dacd881cb3f3.tar.bz2
handle win32 support in FindKDE4Internal.cmake
svn path=/trunk/KDE/kdelibs/; revision=561849
-rw-r--r--modules/FindGNUWIN32.cmake1
-rw-r--r--modules/FindKDE4Internal.cmake4
2 files changed, 3 insertions, 2 deletions
diff --git a/modules/FindGNUWIN32.cmake b/modules/FindGNUWIN32.cmake
index 8b1b15a6..ca2c8b9e 100644
--- a/modules/FindGNUWIN32.cmake
+++ b/modules/FindGNUWIN32.cmake
@@ -11,7 +11,6 @@ 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_DIR)
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index b723517f..7f1e2117 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -449,7 +449,9 @@ if (WIN32)
find_package(KDEWIN32 REQUIRED)
- set( _KDE4_PLATFORM_INCLUDE_DIRS ${KDEWIN32_INCLUDES})
+ find_package(GNUWIN32)
+
+ set( _KDE4_PLATFORM_INCLUDE_DIRS ${KDEWIN32_INCLUDES} ${GNUWIN32_INCLUDE_DIR})
# if we are compiling kdelibs, add KDEWIN32_LIBRARIES explicitely,
# otherwise they come from KDELibsDependencies.cmake, Alex