summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2018-05-30 14:23:10 +0200
committerKonstantin Käfer <mail@kkaefer.com>2018-06-04 10:43:21 +0200
commit4943260d3b94139452ef53e13ca520ceb1cb8045 (patch)
treefbb70fe0670795e9a18f82b01877c60e811bfa68 /cmake
parent9ebb50416465e9c4c13df2f67b4f327020596c6e (diff)
downloadqtlocation-mapboxgl-4943260d3b94139452ef53e13ca520ceb1cb8045.tar.gz
[build] cache Node + Nan headers globally, not build-specific
Diffstat (limited to 'cmake')
-rw-r--r--cmake/node.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/node.cmake b/cmake/node.cmake
index b6f7bb9dc0..c8ad07f639 100644
--- a/cmake/node.cmake
+++ b/cmake/node.cmake
@@ -1,4 +1,5 @@
# Load Node.js
+set(NODE_MODULE_CACHE_DIR "${CMAKE_SOURCE_DIR}/build/headers")
include(node_modules/@mapbox/cmake-node-module/module.cmake)
add_library(mbgl-loop-node INTERFACE)