mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
cmd strip white sapce
This commit is contained in:
parent
75c11132e1
commit
1fa40c5801
|
@ -84,9 +84,11 @@ if (WITH_ZIM)
|
||||||
execute_process(
|
execute_process(
|
||||||
COMMAND sh -c [=[brew --prefix $(brew deps libzim | grep icu4c)]=]
|
COMMAND sh -c [=[brew --prefix $(brew deps libzim | grep icu4c)]=]
|
||||||
OUTPUT_VARIABLE ICU_REQUIRED_BY_ZIM_PREFIX
|
OUTPUT_VARIABLE ICU_REQUIRED_BY_ZIM_PREFIX
|
||||||
|
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||||
COMMAND_ERROR_IS_FATAL ANY)
|
COMMAND_ERROR_IS_FATAL ANY)
|
||||||
message(STATUS "Found correct homebrew icu path -> ${ICU_REQUIRED_BY_ZIM_PREFIX}")
|
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")
|
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 ()
|
endif ()
|
||||||
|
|
||||||
pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim)
|
pkg_check_modules(ZIM REQUIRED IMPORTED_TARGET libzim)
|
||||||
|
|
Loading…
Reference in a new issue