Skip to content

Update configuration for conan 2 #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .conanignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
LICENSE
README.md
20 changes: 0 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,3 @@ conan config install http://github.com/ess-dmsc/conan-configuration.git
```

**Beware, installing this configuration will delete any other other remotes you may have configured.**

This is not necessary for conan2, but the packages are built with conan recipes in v1 format, and so `pip install conan<2` (or similar) must be used

The important things done by installing this configuration are:
- setting the remotes to the ones we use in our projects
- adding the compiler.libc setting for gcc and clang, so that packages can be built against glibc or musl, this is useful for builds on Alpine Linux where musl is used.

Conan2 uses remotes.json and completely ignores remotes.txt, as per https://docs.conan.io/1/migrating_to_2.0/config_files.html#remotes-txt and conan v1 will already use this if present

If you update `settings.yml` using one automatically generated by Conan then make sure you retain this change:
```yml
compiler:
...
gcc:
...
libc: [None, glibc, musl]
clang:
..
libc: [None, glibc, musl]
```
2 changes: 1 addition & 1 deletion remotes.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"remotes": [
{
"name": "conancenter",
"url": "https://center.conan.io",
"url": "https://center2.conan.io",
"verify_ssl": true
},
{
Expand Down
2 changes: 0 additions & 2 deletions remotes.txt

This file was deleted.

154 changes: 0 additions & 154 deletions settings.yml

This file was deleted.