File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515if (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 ()
1727endif ()
1828
1929if (WIN32 )
You can’t perform that action at this time.
0 commit comments