File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ IF(GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
10
10
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR} "
11
11
OUTPUT_VARIABLE cmake_update_submodules
12
12
RESULT_VARIABLE git_config_get_result )
13
- IF (git_config_get_result EQUAL 128 OR cmake_update_submodules MATCHES no )
13
+ IF (cmake_update_submodules MATCHES no )
14
+ SET (update_result 0 )
15
+ SET (SUBMODULE_UPDATE_CONFIG_MESSAGE
16
+ "\n\n To update submodules automaticly, set cmake.update-submodules to 'yes', or 'force' to update automaticly:
17
+ ${GIT_EXECUTABLE} config cmake.update-submodules yes" )
18
+ ELSEIF (git_config_get_result EQUAL 128 )
14
19
SET (update_result 0 )
15
20
ELSEIF (cmake_update_submodules MATCHES force )
16
21
MESSAGE (STATUS "Updating submodules (forced)" )
@@ -31,7 +36,6 @@ ENDIF()
31
36
32
37
IF (update_result OR NOT EXISTS ${CMAKE_SOURCE_DIR} /libmariadb/CMakeLists.txt )
33
38
MESSAGE (FATAL_ERROR "No MariaDB Connector/C! Run
34
- git submodule update --init
35
- Then restart the build.
36
- " )
39
+ ${GIT_EXECUTABLE} submodule update --init
40
+ Then restart the build.${SUBMODULE_UPDATE_CONFIG_MESSAGE} " )
37
41
ENDIF ()
You can’t perform that action at this time.
0 commit comments