diff options
author | Máté Ferenc Nagy-Egri <mate@streamhpc.com> | 2024-01-15 13:47:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-01-16 17:05:15 (GMT) |
commit | 4ecfd1a7dcc937df0f7c01fbbe5c01ac18f49c43 (patch) | |
tree | 3458b68e05b1a9ab01be86e8072ac80f88ca15f9 | |
parent | 76db09fd750dbb6929366b7a4664f210bcf71d66 (diff) | |
download | CMake-4ecfd1a7dcc937df0f7c01fbbe5c01ac18f49c43.zip CMake-4ecfd1a7dcc937df0f7c01fbbe5c01ac18f49c43.tar.gz CMake-4ecfd1a7dcc937df0f7c01fbbe5c01ac18f49c43.tar.bz2 |
FindPackageMessage: Remove extra whitespace from messages
In particular, the call to `find_package_message` from FPHSA may
have extra whitespace in some cases.
-rw-r--r-- | Modules/FindPackageMessage.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindPackageMessage.cmake b/Modules/FindPackageMessage.cmake index 0628b98..7efbe18 100644 --- a/Modules/FindPackageMessage.cmake +++ b/Modules/FindPackageMessage.cmake @@ -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 |