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
wenqing
ogs
Commits
3077cadc
Verified
Commit
3077cadc
authored
4 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Automatically install Conan when OGS_USE_CONAN=auto.
Is installed into the build dir's virtualenv (.venv/bin)
parent
4b4a5096
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cmake/ConanSetup.cmake
+8
-1
8 additions, 1 deletion
scripts/cmake/ConanSetup.cmake
with
8 additions
and
1 deletion
scripts/cmake/ConanSetup.cmake
+
8
−
1
View file @
3077cadc
if
(
NOT OGS_USE_CONAN
)
if
(
NOT OGS_USE_CONAN
)
return
()
return
()
endif
()
endif
()
find_program
(
CONAN_CMD conan
)
string
(
TOLOWER
${
OGS_USE_CONAN
}
OGS_USE_CONAN_lower
)
if
(
OGS_USE_CONAN_lower STREQUAL
"auto"
AND POETRY
)
execute_process
(
COMMAND poetry add conan=
${
ogs.minimum_version.conan
}
WORKING_DIRECTORY
${
PROJECT_BINARY_DIR
}
)
endif
()
find_program
(
CONAN_CMD conan HINTS
${
PROJECT_BINARY_DIR
}
/.venv/bin
)
if
(
NOT CONAN_CMD
)
if
(
NOT CONAN_CMD
)
message
(
WARNING
"conan executable not found. Consider installing Conan for "
message
(
WARNING
"conan executable not found. Consider installing Conan for "
"automatic third-party library handling. https://www.opengeosys.org/doc"
"automatic third-party library handling. https://www.opengeosys.org/doc"
...
...
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