mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-30 18:29:37 -06:00
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:
committed by
Brad King
parent
76db09fd75
commit
4ecfd1a7dc
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user