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 @@ -381,6 +381,12 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL Darwin)
381
381
PRIVATE
382
382
${CURL_INCLUDE_DIRS} )
383
383
find_package (ICU COMPONENTS uc i18n REQUIRED )
384
+
385
+ set (ICU_MINIMUM_VERSION 61 )
386
+ if (ICU_VERSION VERSION_LESS ${ICU_MINIMUM_VERSION} )
387
+ message (FATAL_ERROR "ICU version ${ICU_VERSION} is less than required version ${ICU_MINIMUM_VERSION} " )
388
+ endif ()
389
+ message (STATUS "ICU_INCLUDE_DIR: ${ICU_INCLUDE_DIR} " )
384
390
target_include_directories (CoreFoundation
385
391
PRIVATE
386
392
${ICU_INCLUDE_DIR} )
You can’t perform that action at this time.
0 commit comments