File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ find_package(CURL REQUIRED)
20
20
find_package (ICU COMPONENTS uc i18n REQUIRED )
21
21
find_package (LibXml2 REQUIRED )
22
22
23
+ set (ICU_MINIMUM_VERSION 61 )
24
+ if (ICU_VERSION VERSION_LESS ${ICU_MINIMUM_VERSION} )
25
+ message (FATAL_ERROR "ICU version ${ICU_VERSION} is less than required version ${ICU_MINIMUM_VERSION} " )
26
+ endif ()
27
+
28
+
23
29
include (SwiftSupport )
24
30
include (GNUInstallDirs )
25
31
include (ExternalProject )
Original file line number Diff line number Diff line change @@ -378,6 +378,12 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
378
378
PRIVATE
379
379
${CURL_INCLUDE_DIRS} )
380
380
find_package (ICU COMPONENTS uc i18n REQUIRED )
381
+
382
+ set (ICU_MINIMUM_VERSION 61 )
383
+ if (ICU_VERSION VERSION_LESS ${ICU_MINIMUM_VERSION} )
384
+ message (FATAL_ERROR "ICU version ${ICU_VERSION} is less than required version ${ICU_MINIMUM_VERSION} " )
385
+ endif ()
386
+ message (STATUS , "ICU_INCLUDE_DIR: ${ICU_INCLUDE_DIR} " )
381
387
target_include_directories (CoreFoundation
382
388
PRIVATE
383
389
${ICU_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments