|
@@ -34,7 +34,7 @@
|
|
|
FUNCTION(FIND_PACKAGE_MESSAGE pkg msg details)
|
|
FUNCTION(FIND_PACKAGE_MESSAGE pkg msg details)
|
|
|
# Avoid printing a message repeatedly for the same find result.
|
|
# Avoid printing a message repeatedly for the same find result.
|
|
|
IF(NOT ${pkg}_FIND_QUIETLY)
|
|
IF(NOT ${pkg}_FIND_QUIETLY)
|
|
|
- STRING(REPLACE "\n" "\\n" details "${details}")
|
|
|
|
|
|
|
+ STRING(REGEX REPLACE "[\n]" "" details "${details}")
|
|
|
SET(DETAILS_VAR FIND_PACKAGE_MESSAGE_DETAILS_${pkg})
|
|
SET(DETAILS_VAR FIND_PACKAGE_MESSAGE_DETAILS_${pkg})
|
|
|
IF(NOT "${details}" STREQUAL "${${DETAILS_VAR}}")
|
|
IF(NOT "${details}" STREQUAL "${${DETAILS_VAR}}")
|
|
|
# The message has not yet been printed.
|
|
# The message has not yet been printed.
|