Merge topic 'MinorFeatureSummaryFixes'
0ba9853
Don't warn when setting a property multiple times to the same value #12464b7ac63e
Fix typos in FeatureSummary.cmake (#12462)
This commit is contained in:
commit
d622088b2b
|
@ -2,7 +2,7 @@
|
||||||
#
|
#
|
||||||
# This module provides the macros feature_summary(), set_package_properties() and
|
# This module provides the macros feature_summary(), set_package_properties() and
|
||||||
# add_feature_info().
|
# add_feature_info().
|
||||||
# For compatiblity it also still provides set_package_info(), set_feature_info(),
|
# For compatibility it also still provides set_package_info(), set_feature_info(),
|
||||||
# print_enabled_features() and print_disabled_features().
|
# print_enabled_features() and print_disabled_features().
|
||||||
#
|
#
|
||||||
# These macros can be used to generate a summary of enabled and disabled
|
# These macros can be used to generate a summary of enabled and disabled
|
||||||
|
@ -130,13 +130,13 @@
|
||||||
# PURPOSE "Enables odt-export in MyWordProcessor")
|
# PURPOSE "Enables odt-export in MyWordProcessor")
|
||||||
#
|
#
|
||||||
# find_package(DBUS)
|
# find_package(DBUS)
|
||||||
# set_package_properties(LibXml2 PROPERTIES TYPE RUNTIME
|
# set_package_properties(DBUS PROPERTIES TYPE RUNTIME
|
||||||
# PURPOSE "Necessary to disable the screensaver during a presentation" )
|
# PURPOSE "Necessary to disable the screensaver during a presentation" )
|
||||||
#
|
#
|
||||||
# ADD_FEATURE_INFO(<name> <enabled> <description>)
|
# ADD_FEATURE_INFO(<name> <enabled> <description>)
|
||||||
# Use this macro to add information about a feature with the given <name>.
|
# Use this macro to add information about a feature with the given <name>.
|
||||||
# <enabled> contains whether this feature is enabled or not, <description>
|
# <enabled> contains whether this feature is enabled or not, <description>
|
||||||
# is a text descibing the feature.
|
# is a text describing the feature.
|
||||||
# The information can be displayed using feature_summary() for ENABLED_FEATURES
|
# The information can be displayed using feature_summary() for ENABLED_FEATURES
|
||||||
# and DISABLED_FEATURES respectively.
|
# and DISABLED_FEATURES respectively.
|
||||||
#
|
#
|
||||||
|
@ -209,7 +209,7 @@ FUNCTION(SET_PACKAGE_PROPERTIES _name _props)
|
||||||
|
|
||||||
IF(_SPP_DESCRIPTION)
|
IF(_SPP_DESCRIPTION)
|
||||||
GET_PROPERTY(_info GLOBAL PROPERTY _CMAKE_${_name}_DESCRIPTION)
|
GET_PROPERTY(_info GLOBAL PROPERTY _CMAKE_${_name}_DESCRIPTION)
|
||||||
IF(_info)
|
IF(_info AND NOT "${_info}" STREQUAL "${_SPP_DESCRIPTION}")
|
||||||
MESSAGE(STATUS "Warning: Property DESCRIPTION for package ${_name} already set to \"${_info}\", overriding it with \"${_SPP_DESCRIPTION}\"")
|
MESSAGE(STATUS "Warning: Property DESCRIPTION for package ${_name} already set to \"${_info}\", overriding it with \"${_SPP_DESCRIPTION}\"")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ FUNCTION(SET_PACKAGE_PROPERTIES _name _props)
|
||||||
|
|
||||||
IF(_SPP_URL)
|
IF(_SPP_URL)
|
||||||
GET_PROPERTY(_info GLOBAL PROPERTY _CMAKE_${_name}_URL)
|
GET_PROPERTY(_info GLOBAL PROPERTY _CMAKE_${_name}_URL)
|
||||||
IF(_info)
|
IF(_info AND NOT "${_info}" STREQUAL "${_SPP_URL}")
|
||||||
MESSAGE(STATUS "Warning: Property URL already set to \"${_info}\", overriding it with \"${_SPP_URL}\"")
|
MESSAGE(STATUS "Warning: Property URL already set to \"${_info}\", overriding it with \"${_SPP_URL}\"")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
@ -344,7 +344,7 @@ FUNCTION(FEATURE_SUMMARY)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
IF(NOT _FS_WHAT)
|
IF(NOT _FS_WHAT)
|
||||||
MESSAGE(FATAL_ERROR "The call to FEATURE_SUMMAY() doesn't set the required WHAT argument.")
|
MESSAGE(FATAL_ERROR "The call to FEATURE_SUMMARY() doesn't set the required WHAT argument.")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
SET(validWhatParts "ENABLED_FEATURES"
|
SET(validWhatParts "ENABLED_FEATURES"
|
||||||
|
|
Loading…
Reference in New Issue