diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-09-18 10:51:05 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-09-18 10:51:05 (GMT) |
commit | 0ba98533d07641cac73a1a5ba4b86e4fb131c126 (patch) | |
tree | 3780b98b91a1b4b79a3ba04ff70052262d4c9337 /Modules/FeatureSummary.cmake | |
parent | b7ac63e1c199e72a7af85125030ae369671a02b4 (diff) | |
download | CMake-0ba98533d07641cac73a1a5ba4b86e4fb131c126.zip CMake-0ba98533d07641cac73a1a5ba4b86e4fb131c126.tar.gz CMake-0ba98533d07641cac73a1a5ba4b86e4fb131c126.tar.bz2 |
Don't warn when setting a property multiple times to the same value #12464
Patch by Yury Kudryashov
Alex
Diffstat (limited to 'Modules/FeatureSummary.cmake')
-rw-r--r-- | Modules/FeatureSummary.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FeatureSummary.cmake b/Modules/FeatureSummary.cmake index 2a09c41..eb10cbc 100644 --- a/Modules/FeatureSummary.cmake +++ b/Modules/FeatureSummary.cmake @@ -209,7 +209,7 @@ FUNCTION(SET_PACKAGE_PROPERTIES _name _props) IF(_SPP_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}\"") ENDIF() @@ -219,7 +219,7 @@ FUNCTION(SET_PACKAGE_PROPERTIES _name _props) IF(_SPP_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}\"") ENDIF() |