summaryrefslogtreecommitdiffstats
path: root/Modules/FindKDE4.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2006-03-28 18:07:09 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2006-03-28 18:07:09 (GMT)
commit0d540b31e01b1c478636e35dfc8bb58405e77629 (patch)
treee8417bf2840a26495d81a3f44b9ea7f47ea6d543 /Modules/FindKDE4.cmake
parent15f7676a6d9eda18535a8a46b4c14ebf6ffac4cb (diff)
downloadCMake-0d540b31e01b1c478636e35dfc8bb58405e77629.zip
CMake-0d540b31e01b1c478636e35dfc8bb58405e77629.tar.gz
CMake-0d540b31e01b1c478636e35dfc8bb58405e77629.tar.bz2
STYLE: better error message when KDE4 hasn't been found
Alex
Diffstat (limited to 'Modules/FindKDE4.cmake')
-rw-r--r--Modules/FindKDE4.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/FindKDE4.cmake b/Modules/FindKDE4.cmake
index a40f9cd..17affad 100644
--- a/Modules/FindKDE4.cmake
+++ b/Modules/FindKDE4.cmake
@@ -60,13 +60,14 @@ IF (KDE4_KDECONFIG_EXECUTABLE)
# use FindKDE4Internal.cmake to do the rest
FIND_PACKAGE(KDE4Internal ${_req} ${_quiet})
-
+ ELSE (KDE4_DATA_DIR)
+ MESSAGE(FATAL_ERROR "ERROR: cmake/modules/FindKDE4Internal.cmake not found in ${_data_DIR}")
ENDIF (KDE4_DATA_DIR)
ENDIF (KDE4_KDECONFIG_EXECUTABLE)
IF (KDE4_FIND_REQUIRED AND NOT KDE4_FOUND)
- MESSAGE(FATAL_ERROR "Could not find KDE4")
+ MESSAGE(FATAL_ERROR "ERROR: Could not find KDE4")
ENDIF (KDE4_FIND_REQUIRED AND NOT KDE4_FOUND)