diff options
author | Cameron Cawley <ccawley2011@gmail.com> | 2018-11-08 16:29:27 (GMT) |
---|---|---|
committer | Cameron Cawley <ccawley2011@gmail.com> | 2018-11-08 16:29:27 (GMT) |
commit | 1320122d3fda5974f6ed51cef709481efd2d658d (patch) | |
tree | 57ca4581beaca92405280c2745893bebecf4938b /Modules/FindICU.cmake | |
parent | 17e98e00c449ebdceac980c0ce65c800030605db (diff) | |
download | CMake-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.cmake | 4 |
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) |