aboutsummaryrefslogtreecommitdiff
path: root/modules/MacroLogFeature.cmake
diff options
context:
space:
mode:
authorAllen Winter <winter@kde.org>2008-01-12 16:39:20 +0000
committerAllen Winter <winter@kde.org>2008-01-12 16:39:20 +0000
commit91d93811994077671eb7470e3c4f9610f7e42813 (patch)
tree9e26b1231d32bc6114f855c7a6b59b515c8495c4 /modules/MacroLogFeature.cmake
parent8a7b4a66fe530d8507a1bb91fdf8705d33d662bb (diff)
downloadextra-cmake-modules-91d93811994077671eb7470e3c4f9610f7e42813.tar.gz
extra-cmake-modules-91d93811994077671eb7470e3c4f9610f7e42813.tar.bz2
backport SVN commit 760423 by winterz:
- if all packages were found, provide a message saying so - cleanup the output a little. - not all found packages are optional; some are required. so reduce confusion by saying "external" instead. svn path=/branches/KDE/4.0/kdelibs/; revision=760429
Diffstat (limited to 'modules/MacroLogFeature.cmake')
-rw-r--r--modules/MacroLogFeature.cmake17
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/MacroLogFeature.cmake b/modules/MacroLogFeature.cmake
index cac4ef87..f0f39882 100644
--- a/modules/MacroLogFeature.cmake
+++ b/modules/MacroLogFeature.cmake
@@ -88,27 +88,38 @@ MACRO(MACRO_DISPLAY_FEATURE_LOG)
SET(_file ${CMAKE_BINARY_DIR}/MissingRequirements.txt)
IF (EXISTS ${_file})
FILE(READ ${_file} _requirements)
- MESSAGE(STATUS "\n-------------------------------------------------------------------------------\n-- The following REQUIRED packages could NOT be located on your system. --\n-- Please install them before continuing with this software installation. --\n-------------------------------------------------------------------------------\n${_requirements}-------------------------------------------------------------------------------")
+ MESSAGE(STATUS "\n-----------------------------------------------------------------------------\n-- The following REQUIRED packages could NOT be located on your system.\n-- Please install them before continuing this software installation.\n-----------------------------------------------------------------------------\n${_requirements}-----------------------------------------------------------------------------")
FILE(REMOVE ${_file})
MESSAGE(FATAL_ERROR "Exiting: Missing Requirements")
ENDIF (EXISTS ${_file})
SET(_summary "\n")
+ SET(_elist 0)
SET(_file ${CMAKE_BINARY_DIR}/EnabledFeatures.txt)
IF (EXISTS ${_file})
+ SET(_elist 1)
FILE(READ ${_file} _enabled)
FILE(REMOVE ${_file})
- SET(_summary "${_summary}-------------------------------------------------------------------------------\n-- The following OPTIONAL packages were located on your system. --\n-- This software installation will have features provided by these packages. --\n-------------------------------------------------------------------------------\n${_enabled}")
+ SET(_summary "${_summary}-----------------------------------------------------------------------------\n-- The following external packages were located on your system.\n-- This installation will have the extra features provided by these packages.\n${_enabled}")
ENDIF (EXISTS ${_file})
+ SET(_dlist 0)
SET(_file ${CMAKE_BINARY_DIR}/DisabledFeatures.txt)
IF (EXISTS ${_file})
+ SET(_dlist 1)
FILE(READ ${_file} _disabled)
FILE(REMOVE ${_file})
- SET(_summary "${_summary}-------------------------------------------------------------------------------\n-- The following OPTIONAL packages could NOT be located on your system. --\n-- Consider installing them to enable more features from this software. --\n-------------------------------------------------------------------------------\n${_disabled}")
+ SET(_summary "${_summary}-----------------------------------------------------------------------------\n-- The following OPTIONAL packages could NOT be located on your system.\n-- Consider installing them to enable more features from this software.\n${_disabled}")
+ ELSE (EXISTS ${_file})
+ IF (${_elist})
+ SET(_summary "${_summary}Congratulations! All external packages have been found.\n")
+ ENDIF (${_elist})
ENDIF (EXISTS ${_file})
+ IF (${_elist} OR ${_dlist})
+ SET(_summary "${_summary}-----------------------------------------------------------------------------\n")
+ ENDIF (${_elist} OR ${_dlist})
MESSAGE(STATUS "${_summary}")
ENDMACRO(MACRO_DISPLAY_FEATURE_LOG)