aboutsummaryrefslogtreecommitdiff
path: root/modules/FindKDE4Internal.cmake
diff options
context:
space:
mode:
authorBenjamin Reed <ranger@befunk.com>2007-02-26 19:38:58 +0000
committerBenjamin Reed <ranger@befunk.com>2007-02-26 19:38:58 +0000
commit0dc49c780de91a883efd0c8798cebf0f489634ec (patch)
tree5e8badba87f5f529304c2fb0e75aeec7b789b284 /modules/FindKDE4Internal.cmake
parentacbefba7a800dddffd27f46ca56dac86cd158015 (diff)
downloadextra-cmake-modules-0dc49c780de91a883efd0c8798cebf0f489634ec.tar.gz
extra-cmake-modules-0dc49c780de91a883efd0c8798cebf0f489634ec.tar.bz2
There are a couple of places where we make "APPLE" assumptions
when they really should be Q_WS_X11/Q_WS_MAC assumptions. These changes make it so that kdelibs (and probably the rest) build against qt4/x11 on Mac OS X safely. It should still work with qt4/mac as well. svn path=/trunk/KDE/kdelibs/; revision=637547
Diffstat (limited to 'modules/FindKDE4Internal.cmake')
-rw-r--r--modules/FindKDE4Internal.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake
index 78a4d507..e4e77bcc 100644
--- a/modules/FindKDE4Internal.cmake
+++ b/modules/FindKDE4Internal.cmake
@@ -590,13 +590,12 @@ if (UNIX)
endif (UNIX)
-# UNIX, except OS X
-if (UNIX AND NOT APPLE)
+if (Q_WS_X11)
# Done by FindQt4.cmake already
#find_package(X11 REQUIRED)
# UNIX has already set _KDE4_PLATFORM_INCLUDE_DIRS, so append
set(_KDE4_PLATFORM_INCLUDE_DIRS ${_KDE4_PLATFORM_INCLUDE_DIRS} ${X11_INCLUDE_DIR} )
-endif (UNIX AND NOT APPLE)
+endif (Q_WS_X11)
# This will need to be modified later to support either Qt/X11 or Qt/Mac builds