Provide mechanism to add custom project variables into generated conanbuildinfo.* file
See original GitHub issueI did not find how to pass a custom project variable into the generated conanbuildinfo.* file.
I have a library that builds DLLs with a suffix (based on version and some other info) like ‘file_1_22xyz.dll’. It will be handy to define in a conanfile.py some variables that will be passed into a ‘conanbuildinfo’. For instance:
# conanfile.py
class MyLibConan(ConanFile):
def package_info(self):
self.project_info.vars = [ 'MYLIB_SUFFIX=1_22xyz' ]
# conanbuildinfo.pri
MYLIB_SUFFIX = 1_22xyz
Issue Analytics
- State:
- Created 7 years ago
- Comments:14 (9 by maintainers)
Top Results From Across the Web
conan Documentation
Conan is a decentralized package manager with a client-server architecture. This means that clients can fetch packages.
Read more >Conan Integration — ApprovalTests.cpp documentation
Scenario: I want to use CMake's find_package() and have Conan obtain the packages for me. I only want the Conan references to appear...
Read more >Introduction to Conan package manager
Installing dependencies with Conan; 2. Generating build system with CMake; 3. Compile project with make (on Linux machine). Custom settings.
Read more >Generating variable in conanbuildinfo.cmake with the path ...
cmake is being generated and there are Cmake variables to include and lib folders being set with the path where these folders can...
Read more >B2 User Manual - master
This section will provide the information necessary to create your own projects using B2. The information provided here is relatively high-level, and the ......
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
#1477 implements
user_info_vars
that provides this functionality. Will be in 0.25#1477 for now, txt and cmake generators will be available.