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

Commit 0f35e05

Browse files
committed
[build] make sure we're also updating the mapbox-ios-events submodule
1 parent 67755d1 commit 0f35e05

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

cmake/mbgl.cmake

+7-2
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,14 @@ if(WITH_NODEJS)
6464
endfunction()
6565

6666
# Run submodule update
67+
set(MBGL_SUBMODULES mapbox-gl-js)
68+
if (MBGL_PLATFORM STREQUAL "ios")
69+
list(APPEND MBGL_SUBMODULES platform/ios/vendor/mapbox-events-ios)
70+
endif()
71+
6772
message(STATUS "Updating submodules...")
6873
execute_process(
69-
COMMAND git submodule update --init mapbox-gl-js
74+
COMMAND git submodule update --init ${MBGL_SUBMODULES}
7075
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}")
7176

7277
if(NOT EXISTS "${CMAKE_SOURCE_DIR}/mapbox-gl-js/node_modules")
@@ -80,7 +85,7 @@ if(WITH_NODEJS)
8085
# Add target for running submodule update during builds
8186
add_custom_target(
8287
update-submodules ALL
83-
COMMAND git submodule update --init mapbox-gl-js
88+
COMMAND git submodule update --init ${MBGL_SUBMODULES}
8489
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
8590
COMMENT "Updating submodules..."
8691
)

0 commit comments

Comments
 (0)