File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
15
15
if (NOT EXISTS "${PROJECT_SOURCE_DIR} /thirdparty/dds-types-test/IDL" )
16
- message (FATAL_ERROR "Folder thirdparty/dds-types-test/IDL does not exist. Submodule thirdparty/dds-types-test might not have been initialized." )
16
+ # Update submodule
17
+ message (STATUS "Updating submodule thirdparty/dds-types-test" )
18
+ execute_process (
19
+ COMMAND git submodule update --recursive --init "thirdparty/dds-types-test"
20
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
21
+ RESULT_VARIABLE UPDATE_SUBMODULE_RESULT
22
+ )
23
+ # A result different than 0 means that the submodule could not be updated.
24
+ if (NOT UPDATE_SUBMODULE_RESULT EQUAL 0 )
25
+ message (FATAL_ERROR "Cannot configure Git submodule thirdparty/dds-types-test" )
26
+ endif ()
17
27
endif ()
18
28
19
29
if (WIN32 )
You can’t perform that action at this time.
0 commit comments