Skip to content

Commit

Permalink
include the submodule update in the cmake script
Browse files Browse the repository at this point in the history
  • Loading branch information
zhi-wang committed Dec 6, 2021
1 parent 44806f6 commit d71f479
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CMakeLists.txt
Expand Up @@ -431,6 +431,14 @@ endif ()

find_package (Git)
if (GIT_FOUND)
execute_process (
COMMAND
"${GIT_EXECUTABLE}" submodule update --init
WORKING_DIRECTORY
"${PROJECT_SOURCE_DIR}"
)


if (EXISTS "${PROJECT_SOURCE_DIR}/.git")
execute_process (
COMMAND
Expand Down

0 comments on commit d71f479

Please sign in to comment.