summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-02-23 12:19:04 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-02-23 22:15:57 +0100
commit6b0ad899b3ced4932cf600a4f89b2609512c98be (patch)
tree5d772f8fd0f193b06bdad9de147e59dd8d674789 /cmake
parent87be62f9e4bbf990b63a1f4bed3939276cfd6a92 (diff)
downloadqtlocation-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')
-rw-r--r--cmake/node.cmake2
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()