diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-02-23 12:19:04 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-02-23 22:15:57 +0100 |
commit | 6b0ad899b3ced4932cf600a4f89b2609512c98be (patch) | |
tree | 5d772f8fd0f193b06bdad9de147e59dd8d674789 /cmake/node.cmake | |
parent | 87be62f9e4bbf990b63a1f4bed3939276cfd6a92 (diff) | |
download | qtlocation-mapboxgl-6b0ad899b3ced4932cf600a4f89b2609512c98be.tar.gz |
[node] adhere to node module naming requirements
https://nodejs.org/api/addons.html#addons_building specifies that "The module_name must match the filename of the final binary (excluding the .node suffix).". While the mismatch between `mapbox-gl-native` and `mapbox_gl_native` hasn't caused issues so far, we should play by the book.
Diffstat (limited to 'cmake/node.cmake')
-rw-r--r-- | cmake/node.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/node.cmake b/cmake/node.cmake index 2dd4a66c38..b9a4f68ecc 100644 --- a/cmake/node.cmake +++ b/cmake/node.cmake @@ -49,7 +49,7 @@ target_add_mason_package(mbgl-node PRIVATE geojson) add_custom_command( TARGET mbgl-node POST_BUILD - COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:mbgl-node> ${CMAKE_SOURCE_DIR}/lib/mapbox-gl-native.node + COMMAND ${CMAKE_COMMAND} -E copy $<TARGET_FILE:mbgl-node> ${CMAKE_SOURCE_DIR}/lib/mapbox_gl_native.node ) mbgl_platform_node() |