mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-08 08:40:48 +00:00
Merge topic 'fix-message-details'
cd81da3FindPackageMessage: Eliminate new lines using REGEX REPLACE0ae78b7FindPackageMessage: Eliminate new lines in cache entries
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
FUNCTION(FIND_PACKAGE_MESSAGE pkg msg details)
|
||||
# Avoid printing a message repeatedly for the same find result.
|
||||
IF(NOT ${pkg}_FIND_QUIETLY)
|
||||
STRING(REGEX REPLACE "[\n]" "" details "${details}")
|
||||
SET(DETAILS_VAR FIND_PACKAGE_MESSAGE_DETAILS_${pkg})
|
||||
IF(NOT "${details}" STREQUAL "${${DETAILS_VAR}}")
|
||||
# The message has not yet been printed.
|
||||
|
||||
Reference in New Issue
Block a user