From 4ecfd1a7dcc937df0f7c01fbbe5c01ac18f49c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1t=C3=A9=20Ferenc=20Nagy-Egri?= Date: Mon, 15 Jan 2024 14:47:06 +0100 Subject: FindPackageMessage: Remove extra whitespace from messages In particular, the call to `find_package_message` from FPHSA may have extra whitespace in some cases. --- Modules/FindPackageMessage.cmake | 1 + 1 file changed, 1 insertion(+) 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 -- cgit v0.12