From 772b828b6746403b9d5ffe6d7304bd7e4cc39b78 Mon Sep 17 00:00:00 2001 From: xiphon Date: Sun, 20 Dec 2020 20:00:23 +0000 Subject: [PATCH] cmake: MacOS - detect ICU link directory (required by Boost.Locale) --- src/CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index e38c7dde..f0f6eec5 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -137,6 +137,14 @@ target_compile_definitions(monero-wallet-gui ${Qt5Qml_DEFINITIONS} ) +if(APPLE) + if(NOT ICU_ROOT) + execute_process(COMMAND brew --prefix icu4c OUTPUT_VARIABLE ICU_ROOT OUTPUT_STRIP_TRAILING_WHITESPACE) + endif() + find_package(ICU REQUIRED COMPONENTS data i18n uc) + target_link_directories(monero-wallet-gui PRIVATE ${ICU_ROOT}/lib) +endif() + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}") target_link_libraries(monero-wallet-gui