diff options
Diffstat (limited to 'cmake/node.cmake')
-rw-r--r-- | cmake/node.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/node.cmake b/cmake/node.cmake index ea28e86106..2dd4a66c38 100644 --- a/cmake/node.cmake +++ b/cmake/node.cmake @@ -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 |