Skip to content

Commit

Permalink
Merge branch 'submoduleUpdate' into pyEXPbessel
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed May 14, 2024
2 parents 6d876d8 + 9a92a1c commit aaf3b4a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,19 @@ execute_process(
OUTPUT_STRIP_TRAILING_WHITESPACE
)

# Git submodule updates
execute_process(
COMMAND git submodule update --init --recursive
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
RESULT_VARIABLE GIT_SUBMOD_RESULT
)

if(NOT GIT_SUBMOD_RESULT EQUAL "0")
message(FATAL_ERROR "git submodule update --init --recursive failed ${GIT_SUBMOD_RESULT}, please checkout submodules")
else()
message(STATUS "Submodules updated successfully - good")
endif()

# Get the latest abbreviated commit hash of the working branch
execute_process(
COMMAND git rev-parse HEAD
Expand Down

0 comments on commit aaf3b4a

Please sign in to comment.