Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Automatically created conanfile.txt shows different generators

See original GitHub issue

I’m using the CMake wrapper by downloading the conan.cmake-file and I’m calling

conan_cmake_run(REQUIRES <PACKAGE>/<VERSION>
				GENERATORS cmake_find_package cmake_paths
				BUILD missing

This leads to the creation of several files in my output folder. The CMake output shows:

Generator cmake created conanbuildinfo.cmake

Generator txt created conanbuildinfo.txt

Generator cmake_paths created conan_paths.cmake

Generator cmake_find_package created Find<PACKAGE>.cmake

Generated conaninfo.txt

Generated graphinfo

In my output folder I find the conanfile.txt, which is “the recipe” created by the wrapper for my <PACKAGE>, I guess. Now when I open this file, I see the following:



some options


I was wondering why [generators] is set to cmake and not cmake_find_package and cmake_paths?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

czoidocommented, Sep 8, 2020

Hi @akalali, Thanks for the feedback, that’s probably something we can do for future releases, anyway, if you want not to load the conanbuildinfo.cmake by default you can use the NO_LOAD argument in conan_cmake_run (it will be generated but not loaded).

czoidocommented, Feb 23, 2021

I’m closing this as for the future we are moving in the direction of deprecating the use of conan_cmake_run and using separate calls to conan_cmake_configure, conan_cmake_autodetect and conan_cmake_install proposed here: This is more explicit and can use latest Conan features because you can skip the auto-detection part if you want. Also, that way you can use just what you need without having nothing generated as default.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Creating a custom generator - Conan Docs
Use the txt generator, that generates a plain text file easy to parse, which you might be able to use. Use data,...
Read more >
[question] Problems combining Conan packages with CMake ...
In my top-level CMakeLists.txt -file I use the mentioned CMake Conan ... Automatically created conanfile.txt shows different generators ...
Read more >
Introduction to Conan package manager - Kuba Sejdak
Installing packages. Conan packages can be installed in at least three different ways: manually,; automatically with conanfile.txt , ...
Read more >
How do I make conan generate a FindXXX.cmake?
Conan donesn't create FindXXX.cmake automatically. ... for all settings conan can handle or library package libraries with different names, ...
Read more >
Conan Package Manager for C++ in Practice - YouTube
... and a more complete demo showing how to create and upload a package including different binaries for different platforms to a private ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found