Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
17c3f147
Commit
17c3f147
authored
Feb 13, 2019
by
Daniel Black
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake/submodules: notify user about gitconfig for automatic update
parent
8a9cdc5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
cmake/submodules.cmake
cmake/submodules.cmake
+8
-4
No files found.
cmake/submodules.cmake
View file @
17c3f147
...
...
@@ -10,7 +10,12 @@ IF(GIT_EXECUTABLE AND EXISTS "${CMAKE_SOURCE_DIR}/.git")
WORKING_DIRECTORY
"
${
CMAKE_SOURCE_DIR
}
"
OUTPUT_VARIABLE cmake_update_submodules
RESULT_VARIABLE git_config_get_result
)
IF
(
git_config_get_result EQUAL 128 OR cmake_update_submodules MATCHES no
)
IF
(
cmake_update_submodules MATCHES no
)
SET
(
update_result 0
)
SET
(
SUBMODULE_UPDATE_CONFIG_MESSAGE
"
\n\n
To update submodules automaticly, set cmake.update-submodules to 'yes', or 'force' to update automaticly:
${
GIT_EXECUTABLE
}
config cmake.update-submodules yes"
)
ELSEIF
(
git_config_get_result EQUAL 128
)
SET
(
update_result 0
)
ELSEIF
(
cmake_update_submodules MATCHES force
)
MESSAGE
(
STATUS
"Updating submodules (forced)"
)
...
...
@@ -31,7 +36,6 @@ ENDIF()
IF
(
update_result OR NOT EXISTS
${
CMAKE_SOURCE_DIR
}
/libmariadb/CMakeLists.txt
)
MESSAGE
(
FATAL_ERROR
"No MariaDB Connector/C! Run
git submodule update --init
Then restart the build.
"
)
${
GIT_EXECUTABLE
}
submodule update --init
Then restart the build.
${
SUBMODULE_UPDATE_CONFIG_MESSAGE
}
"
)
ENDIF
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment