Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Moore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
LHCb
Moore
Commits
5ee9f238
Commit
5ee9f238
authored
2 years ago
by
Gerhard Raven
Browse files
Options
Downloads
Patches
Plain Diff
include FileContentMetadataRepository in CMake instead of having a local copy of this code
parent
6e892648
No related branches found
No related tags found
1 merge request
!1529
require an explicit tck/encoding key to configure encoding, optional stable PersistReco locations
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+2
-17
2 additions, 17 deletions
CMakeLists.txt
with
2 additions
and
17 deletions
CMakeLists.txt
+
2
−
17
View file @
5ee9f238
...
...
@@ -25,23 +25,8 @@ list(PREPEND CMAKE_MODULE_PATH
set
(
WITH_Moore_PRIVATE_DEPENDENCIES TRUE
)
include
(
MooreDependencies
)
find_package
(
Git REQUIRED
)
# set(_REPO_URL "ssh://.../filerepo....git" CACHE STRING "URL for the git repository")
set
(
MDR_URLS ssh://git@gitlab.cern.ch:7999/lhcb-conddb/file-content-metadata.git
https://gitlab.cern.ch/lhcb-conddb/file-content-metadata.git
/cvmfs/lhcb-condb.cern.ch/git-conddb/file-content-metadata.git
)
set
(
LHCBFILECONTENTMETADATAREPO
"
${
CMAKE_CURRENT_BINARY_DIR
}
/file-content-metadata/"
)
while
(
NOT EXISTS
${
LHCBFILECONTENTMETADATAREPO
}
AND MDR_URLS
)
list
(
POP_FRONT MDR_URLS url
)
message
(
STATUS
"trying to clone using "
${
url
}
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
clone
${
url
}
${
LHCBFILECONTENTMETADATAREPO
}
)
if
(
NOT
${
url
}
MATCHES
".*gitlab\.cern\.ch.*"
)
execute_process
(
COMMAND
${
GIT_EXECUTABLE
}
--git-dir
${
LHCBFILECONTENTMETADATAREPO
}
/.git remote set-url origin ssh://git@gitlab.cern.ch:7999/lhcb-conddb/file-content-metadata
)
endif
()
endwhile
()
if
(
EXISTS
${
LHCBFILECONTENTMETADATAREPO
}
)
lhcb_env
(
PRIVATE SET LHCbFileContentMetaDataRepo
"
${
LHCBFILECONTENTMETADATAREPO
}
/.git"
)
endif
()
include
(
FileContentMetadataRepository
)
lhcb_create_local_filecontent_metadata_repo
(
"
${
CMAKE_CURRENT_BINARY_DIR
}
/file-content-metadata/"
)
# -- Subdirectories
lhcb_add_subdirectories
(
...
...
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