question-mark
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.

[Question] How to use conanfile.txt with new API ?

See original GitHub issue

I’ve read updated README.md:

conan_cmake_run() high level wrapper

This function is not the recommended way of using cmake-conan any more and will be deprecated in the near future ...

But only this function is support conanfile.txt !!

@czoido How to use conanfile.txt with new API ?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
IceflowREcommented, Apr 22, 2021

Hi @IceflowRE, Could you please share some more details on how you changed things? Which calls are you making and with what arguments?

Found it: I had to add after conan_cmake_install

include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
2reactions
czoidocommented, Apr 7, 2021

Hi @redradist, Thanks for the question. Yes, that’s exactly how to do that, conan_cmake_configure is the function to create a conanfile.txt on the fly and just not calling that is enought. I’ll add an extra note in the README to clarify this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

conanfile.txt — conan 1.53.0 documentation
Reference for conanfile.txt sections: requires, generators, etc. ... If your previous folders use an @ in the path name, use a trailing (even...
Read more >
Conan Documentation - Conan Docs
New APIs, tools, methods, helpers can be added in following 1.X versions. ... Let's create a conanfile.txt inside our project's folder with.
Read more >
Conan Documentation - Conan Docs
New APIs, tools, methods, helpers can be added in following. 2.X versions. ... Have any questions? ... This project will use a conanfile.txt...
Read more >
Conan Documentation - Conan Docs
New APIs, tools, methods, helpers can be added in following 1.X ... Versions defined in the conanfile.txt take precedence over versions ...
Read more >
Using conanfile.txt and conanfile.py in the same directory
By default Conan prefers conanfile.py, but you can use any name that you want. To use a specific file you need to pass...
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 Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found