Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Commit

Permalink
[build] make sure we're also updating the mapbox-ios-events submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
kkaefer committed Aug 15, 2018
1 parent 084c28f commit 9d72bf8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cmake/mbgl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,14 @@ if(WITH_NODEJS)
endfunction()

# Run submodule update
set(MBGL_SUBMODULES mapbox-gl-js)
if (MBGL_PLATFORM STREQUAL "ios")
list(APPEND MBGL_SUBMODULES platform/ios/vendor/mapbox-events-ios)
endif()

message(STATUS "Updating submodules...")
execute_process(
COMMAND git submodule update --init mapbox-gl-js
COMMAND git submodule update --init ${MBGL_SUBMODULES}
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")

if(NOT EXISTS "${CMAKE_SOURCE_DIR}/mapbox-gl-js/node_modules")
Expand All @@ -80,7 +85,7 @@ if(WITH_NODEJS)
# Add target for running submodule update during builds
add_custom_target(
update-submodules ALL
COMMAND git submodule update --init mapbox-gl-js
COMMAND git submodule update --init ${MBGL_SUBMODULES}
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
COMMENT "Updating submodules..."
)
Expand Down

0 comments on commit 9d72bf8

Please sign in to comment.