Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
ogs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dmitri Naumov
ogs
Commits
bfce66ca
Verified
Commit
bfce66ca
authored
4 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
Removed SubmoduleSetup.cmake.
parent
5ea1ef40
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+0
-1
0 additions, 1 deletion
CMakeLists.txt
scripts/cmake/SubmoduleSetup.cmake
+0
-57
0 additions, 57 deletions
scripts/cmake/SubmoduleSetup.cmake
with
0 additions
and
58 deletions
CMakeLists.txt
+
0
−
1
View file @
bfce66ca
...
...
@@ -76,7 +76,6 @@ option(OGS_BUILD_UTILS "Should the utilities programms be built?" ON)
# ---- CMake includes ----
include
(
GitSetup
)
include
(
SubmoduleSetup
)
include
(
Versions
)
include
(
PythonSetup
)
include
(
ProcessesSetup
)
...
...
This diff is collapsed.
Click to expand it.
scripts/cmake/SubmoduleSetup.cmake
deleted
100644 → 0
+
0
−
57
View file @
5ea1ef40
if
(
NOT IS_GIT_REPO
)
return
()
endif
()
# This file initializes the required submodules
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule status
WORKING_DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
OUTPUT_VARIABLE SUBMODULES_STATE
)
string
(
REPLACE
"
\n
"
";"
SUBMODULES_LIST
${
SUBMODULES_STATE
}
)
foreach
(
SUBMODULE_STATE
${
SUBMODULES_LIST
}
)
string
(
REGEX MATCH
"ThirdParty/[/A-Za-z0-9_-]*"
SUBMODULE
${
SUBMODULE_STATE
}
)
if
(
NOT
${
SUBMODULE
}
IN_LIST REQUIRED_SUBMODULES
)
continue
()
endif
()
string
(
REGEX MATCH
"^
\\
-"
UNINITIALIZED
${
SUBMODULE_STATE
}
)
string
(
REGEX MATCH
"^
\\
+"
MISMATCH
${
SUBMODULE_STATE
}
)
if
(
IS_CI
)
# Always set submodule to the given state
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init --force
--recursive
${
DEPTH
}
${
SUBMODULE
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
RESULT_VARIABLE RESULT
)
else
()
set
(
RESULT
""
)
if
(
UNINITIALIZED
)
message
(
STATUS
"Initializing submodule
${
SUBMODULE
}
"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update --init
--recursive
${
DEPTH
}
${
SUBMODULE
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
RESULT_VARIABLE RESULT
)
elseif
(
MISMATCH
)
message
(
STATUS
"Updating submodule
${
SUBMODULE
}
"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
submodule update
--recursive
${
SUBMODULE
}
WORKING_DIRECTORY
${
PROJECT_SOURCE_DIR
}
RESULT_VARIABLE RESULT
)
endif
()
endif
()
if
((
NOT
${
RESULT
}
STREQUAL
""
)
AND
(
NOT
${
RESULT
}
STREQUAL
"0"
))
message
(
FATAL_ERROR
"Error in submodule setup; return value:
${
RESULT
}
"
)
endif
()
endforeach
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment