FindPackageMessage: Remove extra whitespace from messages

In particular, the call to `find_package_message` from FPHSA may
have extra whitespace in some cases.
This commit is contained in:
Máté Ferenc Nagy-Egri
2024-01-15 14:47:06 +01:00
committed by Brad King
parent 76db09fd75
commit 4ecfd1a7dc

View File

@@ -37,6 +37,7 @@ function(find_package_message pkg msg details)
set(DETAILS_VAR FIND_PACKAGE_MESSAGE_DETAILS_${pkg})
if(NOT "${details}" STREQUAL "${${DETAILS_VAR}}")
# The message has not yet been printed.
string(STRIP "${msg}" msg)
message(STATUS "${msg}")
# Save the find details in the cache to avoid printing the same