diff --git a/package.json b/package.json index b99034759..658f96ba7 100644 --- a/package.json +++ b/package.json @@ -70,6 +70,7 @@ }, "main": "lib/index.js", "binary": { + "napi_versions": [8], "module_name": "node_osrm", "module_path": "./lib/binding/", "host": "https://github.com", diff --git a/src/nodejs/CMakeLists.txt b/src/nodejs/CMakeLists.txt index 1db468b25..6ecf937f9 100644 --- a/src/nodejs/CMakeLists.txt +++ b/src/nodejs/CMakeLists.txt @@ -11,9 +11,7 @@ list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/node_modules/node-cmake") message(STATUS "Configuring node_osrm bindings for NodeJs ${NODEJS_VERSION}") add_definitions(-DNAPI_VERSION=8) -#message(FATAL_ERROR "HELLO ${CMAKE_CURRENT_SOURCE_DIR}/../../node_modules/node-addon-api/") include_directories(SYSTEM ${CMAKE_JS_INC}) -include_directories(SYSTEM ${CMAKE_CURRENT_SOURCE_DIR}/../../node_modules/node-addon-api/) add_library(node_osrm SHARED node_osrm.cpp) set_target_properties(node_osrm PROPERTIES PREFIX "" SUFFIX ".node")