Skip to content

[5.0] Link to the ICU61 libraries that are built for Linux #1984

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,27 @@ option(FOUNDATION_PATH_TO_LIBDISPATCH_BUILD "Path to libdispatch build" "")
option(FOUNDATION_PATH_TO_XCTEST_BUILD "Path to XCTest build" "")

find_package(CURL REQUIRED)

# When using find_package for ICU, if ICU is custom built then ICU_{UC,I18N_LIBRARY_{DEBUG,RELEASE}
# also need to be set.
if(NOT "${ICU_UC_LIBRARY}" STREQUAL "")
if("${ICU_UC_LIBRARY_DEBUG}" STREQUAL "")
set(ICU_UC_LIBRARY_DEBUG "${ICU_UC_LIBRARY}")
endif()
if("${ICU_UC_LIBRARY_RELEASE}" STREQUAL "")
set(ICU_UC_LIBRARY_RELEASE "${ICU_UC_LIBRARY}")
endif()
endif()

if(NOT "${ICU_I18N_LIBRARY}" STREQUAL "")
if("${ICU_I18N_LIBRARY_DEBUG}" STREQUAL "")
set(ICU_I18N_LIBRARY_DEBUG "${ICU_I18N_LIBRARY}")
endif()
if("${ICU_I18N_LIBRARY_RELEASE}" STREQUAL "")
set(ICU_I18N_LIBRARY_RELEASE "${ICU_I18N_LIBRARY}")
endif()
endif()

find_package(ICU COMPONENTS uc i18n REQUIRED)
find_package(LibXml2 REQUIRED)

Expand Down