summaryrefslogtreecommitdiffstats
path: root/Modules/FindKDE3.cmake
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-06-16 19:19:44 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-06-16 19:19:44 (GMT)
commitd07a4675d224d155b324fed5a6c43569835b5294 (patch)
tree2644be79b4190659e61d1f4a295837c260dad3bd /Modules/FindKDE3.cmake
parent6c97713a271ddd3de95a9cc130bbf46906c9a172 (diff)
downloadCMake-d07a4675d224d155b324fed5a6c43569835b5294.zip
CMake-d07a4675d224d155b324fed5a6c43569835b5294.tar.gz
CMake-d07a4675d224d155b324fed5a6c43569835b5294.tar.bz2
ENH: fix find module stuff for test
Diffstat (limited to 'Modules/FindKDE3.cmake')
-rw-r--r--Modules/FindKDE3.cmake12
1 files changed, 8 insertions, 4 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake
index 79d66ec..7a48ac7 100644
--- a/Modules/FindKDE3.cmake
+++ b/Modules/FindKDE3.cmake
@@ -63,17 +63,21 @@
#
# Author: Alexander Neundorf <neundorf@kde.org>
-IF(NOT UNIX)
+IF(NOT UNIX AND KDE3_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Compiling KDE3 applications and libraries under Windows is not supported")
-ENDIF(NOT UNIX)
+ENDIF(NOT UNIX AND KDE3_FIND_REQUIRED)
SET(QT_MT_REQUIRED TRUE)
#SET(QT_MIN_VERSION "3.0.0")
#this line includes FindQt.cmake, which searches the Qt library and headers
-FIND_PACKAGE(Qt3 REQUIRED)
-FIND_PACKAGE(X11 REQUIRED)
+IF(KDE3_FIND_REQUIRED)
+ SET(_REQ_STRING_KDE3 "REQUIRED")
+ENDIF(KDE3_FIND_REQUIRED)
+
+FIND_PACKAGE(Qt3 ${_REQ_STRING_KDE3})
+FIND_PACKAGE(X11 ${_REQ_STRING_KDE3})
#add some KDE specific stuff