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] using `boost/system` recipe with system-wide config

See original GitHub issue

Hi! My question is about conan recipes for system packages (like gtk/system or xorg/system from CCI). In our ecosystem we want to use boost/system (custom one) together with boost/1.7? from CCI (we need a transparent switching between them in the root of dependency tree). We use CMakeDeps generator. So before build it generates (among other things) Boost-config.cmake, which is very hard to reproduce in boost/system .

  • Before 1.36 we use the following smart crutch which exploits a bug (?) in generator. Our recipe declare package boost/system with filename (in latest terms cmake_file_name) SystemBoost and with name (in latest terms cmake_target_name) Boost. When somebody (e.g. A) wants to depend on boost, CMakeDeps generates unused SystemBoost-config.cmake and call find_package(Boost ... ) in A-config.cmake. This find_package uses system-wide FindBoost.cmake or config from boost-cmake project and works perfectly.
  • In 1.36 this bug was fixed. (the method was introduced). So the crutch is not working now.
  • Could you elaborate this situation?

There are my thoughts about it:

  • I like the idea to use system-wide config in the specific case of system boost.
  • Generating conan’s Boost-config.cmake to emulate a system one seems very hard. In CCI the only way to do this is using PkgConfig, but Boost has no official .pc file AFAIK.
  • Maybe CMakeDeps can take a system-wide boost config somehow (copying or symlinking it instead of generate its own) in this specific case?
  • Maybe conan can legitimate the crutch described above?

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
memshardedcommented, Jun 14, 2021

This has been merged in https://github.com/conan-io/conan/pull/9087, will be released next 1.38

1reaction
lasotecommented, Jun 10, 2021

Hi, good news. We discussed it and will try to provide something for the next release.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Boost.System: Extensible Error Reporting
We first call the POSIX API read ; if it returns an error, we store the errno value in ec , using the...
Read more >
CMake is not able to find BOOST libraries - Stack Overflow
I'm using this to set up boost from cmake in my CMakeLists.txt . ... cmake which will find Boost_INCLUDE_DIR in boost/config.hpp in BOOST_ROOT...
Read more >
Project Boost® imPlementation guide
The Society of Hospital Medicine and the Project BOOST team hope you find this Implementation Guide and the included tools useful as you...
Read more >
Optimize Photoshop performance - Adobe Support
Tweak your operating system, hardware, and application settings to help your computer run Photoshop ... Broad steps to boost performance.
Read more >
Top DevOps Interview Questions And Answers for 2023
This is an ideal place to configure simple deployment scripts, invoke some continuous integration systems, dispatch notification emails to ...
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