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.

Provide mechanism to add custom project variables into generated conanbuildinfo.* file

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Jul 17, 2017

#1477 implements user_info_vars that provides this functionality. Will be in 0.25

0reactions
lasotecommented, Jul 4, 2017

#1477 for now, txt and cmake generators will be available.

Read more comments on GitHub >

github_iconTop 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 >

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