summaryrefslogtreecommitdiffstats
path: root/Modules/FindICU.cmake
diff options
context:
space:
mode:
authorCameron Cawley <ccawley2011@gmail.com>2018-11-08 16:29:27 (GMT)
committerCameron Cawley <ccawley2011@gmail.com>2018-11-08 16:29:27 (GMT)
commit1320122d3fda5974f6ed51cef709481efd2d658d (patch)
tree57ca4581beaca92405280c2745893bebecf4938b /Modules/FindICU.cmake
parent17e98e00c449ebdceac980c0ce65c800030605db (diff)
downloadCMake-1320122d3fda5974f6ed51cef709481efd2d658d.zip
CMake-1320122d3fda5974f6ed51cef709481efd2d658d.tar.gz
CMake-1320122d3fda5974f6ed51cef709481efd2d658d.tar.bz2
FindICU: Add libdl to the link libraries for icu-uc
Diffstat (limited to 'Modules/FindICU.cmake')
-rw-r--r--Modules/FindICU.cmake4
1 files changed, 4 insertions, 0 deletions
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)