diff options
author | Brad King <brad.king@kitware.com> | 2018-11-12 13:18:40 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-11-12 13:18:47 (GMT) |
commit | a63a9363b27aa84d01341484f02897814204c922 (patch) | |
tree | 4327c690bfaf5939509000aaa3a7ccc231c2dbc6 /Modules | |
parent | f52dc4cae14a13185d264540229af87fed23c3a3 (diff) | |
parent | 1320122d3fda5974f6ed51cef709481efd2d658d (diff) | |
download | CMake-a63a9363b27aa84d01341484f02897814204c922.zip CMake-a63a9363b27aa84d01341484f02897814204c922.tar.gz CMake-a63a9363b27aa84d01341484f02897814204c922.tar.bz2 |
Merge topic 'FindICU-link-dl'
1320122d3f FindICU: Add libdl to the link libraries for icu-uc
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Francois Budin <francois.budin@kitware.com>
Merge-request: !2581
Diffstat (limited to 'Modules')
-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) |