Skip to content

Migrate project to Conan 2 and update dependencies#2

Open
ffischer1984 wants to merge 3 commits into
jothepro:mainfrom
ffischer1984:main
Open

Migrate project to Conan 2 and update dependencies#2
ffischer1984 wants to merge 3 commits into
jothepro:mainfrom
ffischer1984:main

Conversation

@ffischer1984

@ffischer1984 ffischer1984 commented May 20, 2026

Copy link
Copy Markdown

i have built the app under example and tried dropbox which worked fine.
Would be happy if you would deploy it to conan2

ff 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant