Migrate project to Conan 2 and update dependencies#2
Open
ffischer1984 wants to merge 3 commits into
Open
Conversation
added 3 commits
May 20, 2026 22:29
- conanfile.py: rewrite using Conan 2 API
- replace `from conans import ...` with `from conan import ConanFile`
- use `CMakeToolchain`, `CMakeDeps`, `cmake_layout` instead of old generators
- move version detection from module-level function to `set_version()`
method with proper `self` context; fall back to "0.0.0" if no git
tag and no VERSION file exist
- replace `build()`/`CMake` usage with Conan 2 equivalents
- add `generate()` and `package()` methods
- replace deprecated `cpp_info.names` with `set_property()` calls
- update default_options keys to use wildcard syntax (`fakeit/*:`, `libcurl/*:`)
- bump catch2: 2.13.4 → 3.7.1 (2.x unavailable in ConanCenter for Conan 2)
- bump fakeit: 2.0.9 → 2.5.0 (compatible with catch2/3.x)
- bump pugixml: 1.11 → 1.14 (1.11 incompatible with CMake >= 3.5 policy)
- test/: update all Catch2 includes from `<catch2/catch.hpp>` (v2)
to `<catch2/catch_all.hpp>` (v3)
- README.md: update all Conan commands to Conan 2 syntax
- `-if build` → `-of build`
- `--build missing` → `--build=missing`
- `-e CONAN_RUN_TESTS=0` → `-c tools.build:skip_test=True`
- `conan build -bf build .` → `cmake` with generated toolchain
- `conan build -bf build --test .` → `ctest --test-dir build/test`
- bump build requirement: Conan >= 1.40 → Conan >= 2.0
- update skip_test docs link to Conan 2 reference
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
i have built the app under example and tried dropbox which worked fine.
Would be happy if you would deploy it to conan2