From 1fa40c5801ae427bc177b6fb2256c7fda5595e7c Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Mon, 18 Nov 2024 04:00:01 -0500 Subject: [PATCH] cmd strip white sapce --- cmake/Deps_Unix.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmake/Deps_Unix.cmake b/cmake/Deps_Unix.cmake index 7f53368d..043c3362 100644 --- a/cmake/Deps_Unix.cmake +++ b/cmake/Deps_Unix.cmake @@ -84,9 +84,11 @@ if (WITH_ZIM) execute_process( COMMAND sh -c [=[brew --prefix $(brew deps libzim | grep icu4c)]=] OUTPUT_VARIABLE ICU_REQUIRED_BY_ZIM_PREFIX + OUTPUT_STRIP_TRAILING_WHITESPACE COMMAND_ERROR_IS_FATAL ANY) message(STATUS "Found correct homebrew icu path -> ${ICU_REQUIRED_BY_ZIM_PREFIX}") set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:${ICU_REQUIRED_BY_ZIM_PREFIX}/lib/pkgconfig") + message(STATUS "$ENV{PKG_CONFIG_PATH}:${ICU_REQUIRED_BY_ZIM_PREFIX}/lib/pkgconfig") endif () pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim)