diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2018-10-03 14:29:16 +0100 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2018-10-03 14:29:16 +0100 |
commit | f67e050430d6d7e577a025e7bf0488bee0a8e450 (patch) | |
tree | eb9b2a7e4786ccb8837309fbe8d9f8b41d316f69 /cmake/submodules.cmake | |
parent | b4e841648c1fe017a03846d9580629ec8b3fb9fd (diff) | |
download | mariadb-git-f67e050430d6d7e577a025e7bf0488bee0a8e450.tar.gz |
Update libmariadb
Diffstat (limited to 'cmake/submodules.cmake')
-rw-r--r-- | cmake/submodules.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/cmake/submodules.cmake b/cmake/submodules.cmake index 672a3affc1d..4181f4cd01e 100644 --- a/cmake/submodules.cmake +++ b/cmake/submodules.cmake @@ -1,4 +1,10 @@ # update submodules automatically + +OPTION(UPDATE_SUBMODULES "Update submodules automatically" ON) +IF(NOT UPDATE_SUBMODULES) + RETURN() +ENDIF() + IF(GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git") EXECUTE_PROCESS(COMMAND "${GIT_EXECUTABLE}" config --get cmake.update-submodules WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" |