Skip to main content
Filter by
Sorted by
Tagged with
2 votes
0 answers
44 views

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 ...
AzusaYu's user avatar
  • 21
0 votes
0 answers
102 views

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 ...
Gil's user avatar
  • 11
0 votes
1 answer
241 views

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:...
Igor Mikushkin's user avatar
0 votes
0 answers
20 views

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 ...
Argishti Ayvazyan's user avatar
0 votes
0 answers
259 views

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(...
chrisake's user avatar
1 vote
1 answer
128 views

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 ...
Patrick Fromberg's user avatar
0 votes
0 answers
181 views

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....
einpoklum's user avatar
  • 137k
1 vote
0 answers
168 views

I've got a project that uses boost library compiled and installed on my macOS build machine using conan2 under CMake. I've managed to reproduce the problem using the following minimal code. my project ...
Zohar81's user avatar
  • 5,214
0 votes
0 answers
307 views

I've got the following structure of conanfile.py for the purpose of installing boost in my macOS build machine. Apparently some boost components are not supported in this platform and should be ...
Zohar81's user avatar
  • 5,214
2 votes
0 answers
68 views

I'm newby in using cmake and conan2, so I need help with Poco library. I've installed conan2, wrote a simple conanfile.txt and installed all the libs I need. But now one of them (ncurses) works just ...
ProMike's user avatar
  • 187
0 votes
1 answer
752 views

I am using the following setup: Visual Studio: Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.10.2 Conan: Conan version 2.4.1 Here is my Conan profile: [settings] arch=x86_64 ...
Tamas's user avatar
  • 1
1 vote
1 answer
358 views

I want to use conan in an existing CMake project. I have the conanfile.txt in the root directory and run conan install . --build=missing --output-folder=build/conan, but I don't know how to get CMake ...
bustus_primus's user avatar
4 votes
1 answer
2k views

I have seen that the two commands can sometimes be used interchangeably. Can anyone point to the actual difference, and when you'd use conan install vs. when you'd use conan create?
steep's user avatar
  • 123
0 votes
1 answer
603 views

I want to use conan new https://docs.conan.io/2.0/reference/commands/new.html to create new project from specific template. But I do not want to manage all templates in the same conan config repo. ...
denys's user avatar
  • 2,529
0 votes
1 answer
132 views

I used the following command to get a list of pre-built packages for the libpng library: conan download libpng/1.6.40 -p "arch=x86_64 AND os=Windows AND compiler=msvc AND compiler.version=192&...
langlauf.io's user avatar
  • 3,259
0 votes
1 answer
2k views

I'm testing my new library on windows and I want to make sure it also builds with MSVC. Now I say I want to test with multiple versions of msvc and I also have mingw and cygwin versions of gcc ...
glades's user avatar
  • 5,356
0 votes
1 answer
286 views

I have a CMake project that creates an interface library with (only showing the critical section of CMakeLists.txt): ... add_subdirectory(part1) add_subdirectory(part2) add_subdirectory(part3) ...
PMDP3's user avatar
  • 57
1 vote
1 answer
2k views

When I run the conan install command, as specified below, I expect to generate conan_toolchain.cmake and a conan_deps.cmake files in my output folder. But only conan_toolchain.cmake is present. And ...
rocketman's user avatar
  • 161
2 votes
2 answers
1k views

I am going mad trying to get CMake, Emscripten and Conan 2 playing together. First thing I tried was just using conan-cmake's develop2 branch, which supports conan 2 but fails with setting unknown ...
Oma Paloma's user avatar
1 vote
0 answers
919 views

Conan version: 2.0.13 I have a conan recipe where I define the set_version() method to set my package version based on an external script. When I try to generate the package by doing conan create . I ...
Jorge's user avatar
  • 1,453
0 votes
1 answer
823 views

I want my conan build . to always use a certain toolchain, say clang++14 and cmake 3.20 to build itself and its dependencies. How can I accomplish that? The reason is that our company uses either ...
glades's user avatar
  • 5,356
0 votes
1 answer
1k views

I have a c++ project that I am cross compiling using a yocto sdk. I'm starting to use conan 2.0 as a package manager to fetch third party libraries for my c++ project. I created a conanfile.txt at the ...
Loki's user avatar
  • 616
1 vote
1 answer
243 views

My project has: 1 cpp file Conan2.0 as package manager CMake The files are as follows: conanfile.txt [tool_requires] cmake/3.27.1 [requires] nlohmann_json/3.11.2 libcurl/8.2.1 openssl/3.1.2 [...
Aditya Mukherjee's user avatar
0 votes
1 answer
2k views

I'm trying my luck with conan2, but I have a hard time getting it to build my library. Well to be precise, my library is packaged just fine, but the test_package invocation fails as it can't find said ...
glades's user avatar
  • 5,356
0 votes
1 answer
894 views

PS C:\Dev\test> conan --version Conan version 2.0.9 PS C:\Dev\test> cmake --version cmake version 3.27.1 I am trying to make a boost-cmake-conan 2.0 hello world using the default cmake_exe ...
pandaman1234's user avatar