[build] use node-cmake 2.x
- Removes need to run `npm install` before invoking cmake
This commit is contained in:
@@ -1,7 +1,15 @@
|
||||
# Load Node.js
|
||||
include(cmake/NodeJS.cmake)
|
||||
nodejs_init()
|
||||
|
||||
add_nodejs_module(mbgl-node
|
||||
platform/node/src/node_mapbox_gl_native.cpp
|
||||
)
|
||||
|
||||
# NodeJS.cmake forces C++11.
|
||||
# https://github.com/cjntaylor/node-cmake/issues/18
|
||||
set_target_properties("mbgl-node" PROPERTIES CXX_STANDARD 14)
|
||||
|
||||
target_sources(mbgl-node
|
||||
PRIVATE platform/node/src/node_logging.hpp
|
||||
PRIVATE platform/node/src/node_logging.cpp
|
||||
|
||||
Reference in New Issue
Block a user