Skip to content

Commit d3f4b78

Browse files
committed
Add ICU support for FindNodeJS on version 18.
1 parent 71735d6 commit d3f4b78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/FindNodeJS.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -452,6 +452,8 @@ if(NOT NodeJS_LIBRARY)
452452
message(STATUS "Configure NodeJS shared library")
453453

454454
# Select the ICU library depending on the NodeJS version
455+
if("${NodeJS_VERSION_MAJOR}" GREATER_EQUAL "18")
456+
set(ICU_URL "https://github.com/unicode-org/icu/releases/download/release-71-1/icu4c-71_1-src.zip")
455457
if("${NodeJS_VERSION_MAJOR}" GREATER_EQUAL "16")
456458
set(ICU_URL "https://github.com/unicode-org/icu/releases/download/release-69-1/icu4c-69_1-src.zip")
457459
elseif("${NodeJS_VERSION_MAJOR}" GREATER_EQUAL "15")

0 commit comments

Comments
 (0)