Use find_package to find ICU libraries.
# Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
+find_package(ICU 60.0 REQUIRED COMPONENTS uc i18n)
vespa_add_library(searchlib_searchlib_uca
SOURCES
ucaconverter.cpp
@@ -6,6 +7,6 @@ vespa_add_library(searchlib_searchlib_uca
INSTALL lib64
DEPENDS
searchlib
- icui18n
- icuuc
+ ICU::i18n
+ ICU::uc
)
