diff options
-rw-r--r-- | modules/FindKDE4Internal.cmake | 6 | ||||
-rw-r--r-- | modules/FindQt4.cmake | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/modules/FindKDE4Internal.cmake b/modules/FindKDE4Internal.cmake index 778a4534..d4ac2e8a 100644 --- a/modules/FindKDE4Internal.cmake +++ b/modules/FindKDE4Internal.cmake @@ -212,6 +212,9 @@ # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. +if(KDE4_FOUND) + # Already found in this cmake run, nothing more to do +else(KDE4_FOUND) include (MacroEnsureVersion) @@ -972,3 +975,6 @@ if (NOT _kde4_uninstall_rule_created) add_custom_target(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_BINARY_DIR}/cmake_uninstall.cmake") endif (NOT _kde4_uninstall_rule_created) + +endif(KDE4_FOUND) + diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake index 2a52a5f0..36b64088 100644 --- a/modules/FindQt4.cmake +++ b/modules/FindQt4.cmake @@ -181,6 +181,10 @@ # Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. # See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. +if (QT4_QMAKE_FOUND) + # Check already done in this cmake run, nothing more to do + +else (QT4_QMAKE_FOUND) INCLUDE(CheckSymbolExists) INCLUDE(MacroAddFileDependencies) @@ -1241,4 +1245,5 @@ ELSE(QT4_QMAKE_FOUND) ENDIF(Qt4_FIND_REQUIRED) ENDIF (QT4_QMAKE_FOUND) +ENDIF (QT4_QMAKE_FOUND) |