61 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
Tooling
0
votes
2
replies
55
views
How to resolve conflicting versions of the same library required by two dependencies in Conan 2.0?
I'm using Conan 2.0 as a package manager for a C++ project and facing a dependency version conflict. Two pre-compiled libraries I need (cpr/1.14.1 and prometheus-cpp/1.3.0) require different versions ...
0
votes
1
answer
83
views
List the library file paths in the target_link_libraries command [closed]
So, I have this in a CMakeLists.txt:
cmake_minimum_required(VERSION 3.19)
project(MyHello LANGUAGES CXX)
find_package(deal.II 9.4.2 CONFIG REQUIRED)
find_package(Boost REQUIRED)
find_package(TBB ...
2
votes
0
answers
56
views
libstdc++.so links error when try to use pybind11/3.0.1 of conan-2 and cpp23 in wsl
In WSL (Ubuntu 24.04), when using Conan to create a package that links pybind11/3.0.1, the resulting executable in the test_package fails to run.
Even if the executable doesn't directly call any ...
0
votes
0
answers
117
views
'There is a cycle/loop in the graph' — what causes it?
I am building a package that depends on two tools: toola and toolb.
These tools may depend on different CMake packages.
In my package recipe, the tool dependencies are declared as:
tool_requires = (
...
0
votes
0
answers
146
views
Using Conan v-2.x built packages of one build type in a cmake project building using another build type
When using a single configuration environment of UnixMakeFiles, and Conan 1.x, it was easy to specify a build type in the Conan profile, and use the packages in cmake using cmake generator and the ...
1
vote
1
answer
157
views
Build Conan 2 packages with LTO
I want to build from source Conan 2 packages with LTO using GCC and Unix Makefiles generator. I'm building packages with conan install . --build=missing. LTO (Link Time Optimization) can be enabled in ...
0
votes
1
answer
327
views
Conan profile: different compiler flags per build type
I have the following Conan default profile:
[settings]
build_type=Debug
arch=x86_64
compiler=gcc
compiler.cppstd=gnu23
compiler.libcxx=libstdc++11
compiler.version=14
os=Linux
[conf]
tools.build:...
2
votes
1
answer
135
views
Make conan install print underlying compiler commands like g++ when building from source
I'd like conan install . --build=missing to print the underlying compiler commands when building from source.
Increasing the verbosity level (e.g. -vvv) doesn't help. I suspect I need to pass ...
0
votes
0
answers
22
views
How to use cmake-js with Conan 2?
After switching to Conan 2, I faced the following problem: Conan 2 does not export the conaninfo.cmake file, and in order to use CMake, I need to use presets or a toolchain file that works as expected ...
3
votes
1
answer
215
views
Can I tell Conan about which GLIBCXX versions are supported in my environment?
I am using Conan (version 2.15.1) to install Boost in a Debian Bullseye Docker container. I am able to do that successfully with the command conan install --build "*" . (build everything ...
0
votes
0
answers
292
views
Conan Fails to Build Boost
I am new to conan, I am trying to integrate it to my project through a conanfile.py
My conanFile.py is this
from conan import ConanFile
from conan.tools.cmake import cmake_layout
class ProjectName(...
1
vote
0
answers
52
views
Could not find *Config.cmake in several C++ cmake projects
I have problem with using libraries for C++ using Conan2 and Cmake in Linux. Files are:
CMakeList.txt in root:
cmake_minimum_required(VERSION 3.5)
set(CMAKE_CXX_COMPILER "/usr/bin/clang++") ...
1
vote
1
answer
141
views
Howto consume libraries from the conan2 cache with runpath set
I am using Conan2 to resolve external dependencies. I add them via find_ package in my CMakeLists.txt.
My own project binaries created by cmake --build ... have their run path's set by cmake pointing ...
0
votes
1
answer
204
views
Upload Conan Packages Anonymously to Artifactory
We use Artifactory for C/C++ packages, which we store on a remote repository on Artifactory using Conan. I want to achieve that Conan packages generated by a pipeline build are uploaded anonymously.
...
0
votes
0
answers
213
views
How can I get my Conan recipe to require a certain version of CMake?
I'm updating a Conan recipe of a library of mine. This library now requires a relatively new version of CMake to run. How do I "tell" Conan - or at least, the PR action checkers on github....