diff options
Diffstat (limited to 'vcpkg/ports/libphonenumber/fix-icui18n-lib-name.patch')
| -rw-r--r-- | vcpkg/ports/libphonenumber/fix-icui18n-lib-name.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/libphonenumber/fix-icui18n-lib-name.patch b/vcpkg/ports/libphonenumber/fix-icui18n-lib-name.patch new file mode 100644 index 0000000..1cc5a41 --- /dev/null +++ b/vcpkg/ports/libphonenumber/fix-icui18n-lib-name.patch @@ -0,0 +1,17 @@ +diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt +index cdd7a081..10b6dce7 100644 +--- a/cpp/CMakeLists.txt ++++ b/cpp/CMakeLists.txt +@@ -192,7 +192,11 @@ set (ICU_INCLUDE_DIR ${ICU_UC_INCLUDE_DIR}) + set (ICU_LIB ${ICU_UC_LIB}) + # If ICU regexp engine is used or if the geocoder is built, use icui18n as well. + if (USE_ICU_REGEXP OR BUILD_GEOCODER) +- find_required_library (ICU_I18N unicode/regex.h icui18n "ICU") ++ if (NOT WIN32) ++ find_required_library (ICU_I18N unicode/regex.h "icui18n" "ICU") ++ else () ++ find_required_library (ICU_I18N unicode/regex.h "icuin" "ICU") ++ endif () + check_library_version (PC_ICU_I18N icu-i18n>=4.4) + list (APPEND ICU_INCLUDE_DIR ${ICU_I18N_INCLUDE_DIR}) + list (APPEND ICU_LIB ${ICU_I18N_LIB}) |