diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-12-21 10:38:56 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-12-22 15:41:10 -0800 |
commit | 317b2bf42fc16b629abcd0a984d4acc14070904f (patch) | |
tree | f77903d6514c1fd1ea3cf24cb33644e3719ee92e /CMakeLists.txt | |
parent | 531c983b73f01c3894a8984077620ed633351b20 (diff) | |
download | qtlocation-mapboxgl-317b2bf42fc16b629abcd0a984d4acc14070904f.tar.gz |
[build] Use a submodule for mapbox-gl-js rather than an npm dependency
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 28778ed58a..a9f52ba9de 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,6 +10,12 @@ if(NOT EXISTS ".mason/mason.cmake") WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) endif() +if(NOT EXISTS "mapbox-gl-js/package.json") + execute_process( + COMMAND git submodule update --init mapbox-gl-js + WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}) +endif() + include(.mason/mason.cmake) option(WITH_CXX11ABI "Use cxx11abi mason packages" OFF) |