Skip to content

Commit

Permalink
Set to use NAPI version 4 to fix compile issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
wcjohns committed Oct 22, 2024
1 parent ca6bb51 commit d5ac863
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/electron/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cmake_policy(SET CMP0042 NEW)

project( InterSpecAddOn )

add_definitions(-DNAPI_VERSION=3) #node.js v6.14.2*, 8.11.2+, v9.11.0+*, 10.0.0 and all later versions
add_definitions(-DNAPI_VERSION=4)

include_directories(${CMAKE_JS_INC})

Expand Down

0 comments on commit d5ac863

Please sign in to comment.