Different generator files when installing exported package vs. calling conan install
See original GitHub issueI have written an example conanfile, to reproduce this issue:
from conans import ConanFile
class ConanFileInst(ConanFile):
name = 'test-package'
version = '1.0.0'
generators = 'txt'
def package_info(self):
self.deps_cpp_info.defines = ['A=B', 'C=D']
Now you run following commands:
conan install
conan export demo/demo
conan install test-package/1.0.0@demo/demo --build
Now we have generated conanbuildinfo.txt files both in current directory and “.conan\data\test-package\1.0.0\demo\demo\build\[hash]”, but they are different. In current directory conanbuildinfo.txt contains [defines] section with “A=B” and “C=D”, but conanbuildinfo.txt from .conan repository have this section empty.
Issue Analytics
- State:
- Created 7 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Package development flow — conan 1.36.0 documentation
This method outputs the source files into the source-folder. ... Already installed! hello/1.1@user/channel (test package): Generator cmake created ...
Read more >Building with Conan — OpenPASS Documentation - Eclipse
To be able to work with Conan it´s necessary to add additional packages. ... What it basically does is calling export and install...
Read more >Using Conan for Qt6 - Qt Wiki
Conan depends on Python installed on your system. ... Qt Conan packages require the settings.yml file to be 1.39 or newer.
Read more >CONAN CHEAT SHEET - JFrog
Also implicitly does install and export steps. $ conan create ... Copy packaged files out of Conan cache ... Consume packages in build...
Read more >Conan packages in the Package Registry - GitLab Docs
Conan packages are often installed as dependencies by using the conanfile.txt file ... Or, in the root of your project, create a file...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi,
Thank you for your answers. I have no more questions concerning this thread.
Thanks again.
Hi @omicronns (Konrad),
Any follow up question to this thread, or something else you want to discuss? Could this issue be closed? Thanks!