[question] using `boost/system` recipe with system-wide config
See original GitHub issue- I’ve read the CONTRIBUTING guide.
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.36we use the following smart crutch which exploits a bug (?) in generator. Our recipe declare packageboost/systemwith filename (in latest termscmake_file_name)SystemBoostand with name (in latest termscmake_target_name)Boost. When somebody (e.g.A) wants to depend on boost,CMakeDepsgenerates unusedSystemBoost-config.cmakeand callfind_package(Boost ... )inA-config.cmake. Thisfind_packageuses system-wideFindBoost.cmakeor config fromboost-cmakeproject and works perfectly. - In
1.36this 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.cmaketo emulate a system one seems very hard. In CCI the only way to do this is usingPkgConfig, but Boost has no official.pcfile AFAIK. - Maybe
CMakeDepscan 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:
- Created 2 years ago
- Comments:15 (8 by maintainers)
Top 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 >
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

This has been merged in https://github.com/conan-io/conan/pull/9087, will be released next 1.38
Hi, good news. We discussed it and will try to provide something for the next release.