Skip to content

Commit

Permalink
Add ICU support for FindNodeJS on version 18.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Sep 6, 2022
1 parent 71735d6 commit d3f4b78
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/FindNodeJS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -452,6 +452,8 @@ if(NOT NodeJS_LIBRARY)
message(STATUS "Configure NodeJS shared library")

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

0 comments on commit d3f4b78

Please sign in to comment.