From 1320122d3fda5974f6ed51cef709481efd2d658d Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Thu, 8 Nov 2018 11:29:27 -0500 Subject: FindICU: Add libdl to the link libraries for icu-uc --- Modules/FindICU.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Modules/FindICU.cmake b/Modules/FindICU.cmake index 685b10f..70e10f5 100644 --- a/Modules/FindICU.cmake +++ b/Modules/FindICU.cmake @@ -363,6 +363,10 @@ if(ICU_FOUND) IMPORTED_LINK_INTERFACE_LANGUAGES_DEBUG "CXX" IMPORTED_LOCATION_DEBUG "${${_ICU_component_cache_debug}}") endif() + if(CMAKE_DL_LIBS AND _ICU_component STREQUAL "uc") + set_target_properties(${_ICU_imported_target} PROPERTIES + INTERFACE_LINK_LIBRARIES "${CMAKE_DL_LIBS}") + endif() endif() endif() unset(_ICU_component_upcase) -- cgit v0.12