From 62ee1ad5a43204797c2843a74a6d0ce8c16e4fc7 Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 9 May 2006 20:27:47 +0000 Subject: Abort if QtCore couldn't be found - for mikmak and his strange permission problem ;) svn path=/trunk/KDE/kdelibs/; revision=539150 --- modules/FindQt4.cmake | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/modules/FindQt4.cmake b/modules/FindQt4.cmake index cd9924a6..a3d282ec 100644 --- a/modules/FindQt4.cmake +++ b/modules/FindQt4.cmake @@ -560,6 +560,12 @@ IF (QT4_QMAKE_FOUND) ENDIF (QT_USE_FRAMEWORKS) + IF( NOT QT_QTCORE_LIBRARY_DEBUG AND NOT QT_QTCORE_LIBRARY_RELEASE ) + IF( NOT Qt4_FIND_QUIETLY AND Qt4_FIND_REQUIRED) + MESSAGE( FATAL_ERROR "Could NOT find QtCore. Check CMakeFiles/CMakeError.log for more details.") + ENDIF( NOT Qt4_FIND_QUIETLY AND Qt4_FIND_REQUIRED) + ENDIF( NOT QT_QTCORE_LIBRARY_DEBUG AND NOT QT_QTCORE_LIBRARY_RELEASE ) + # Set QT_QTASSISTANT_LIBRARY FIND_LIBRARY(QT_QTASSISTANT_LIBRARY_RELEASE NAMES QtAssistantClient QtAssistant QtAssistant4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH) FIND_LIBRARY(QT_QTASSISTANT_LIBRARY_DEBUG NAMES QtAssistantClientd QtAssistantClient_debug QtAssistant_debug QtAssistantd4 PATHS ${QT_LIBRARY_DIR} NO_DEFAULT_PATH) -- cgit v1.2.1