Comments (8)
Now, how do I use these CMake files in cmake projects?
find_package(Boost)
will automatically use them if they are installed somewhere in the CMake search path.
from boost_install.
Looking at the Qt5 package, looks like it installs the .cmake configs in /usr/lib/x86_64-linux-gnu/cmake
, which is probably where the Boost ones should go, too.
from boost_install.
Yes, it looks like Boost.MPI installs a Python extension called mpi
: https://github.com/boostorg/mpi/blob/c7fdb33cca09d7248826a340ff40be5eec1e36af/build/Jamfile.v2#L173
I agree that installing a CMake configuration for a package called mpi
is not something we should do. Not sure where and how to fix that properly.
from boost_install.
I also wee a few other "weird" cmake files:
- boost_stacktrace_windbg-1.71.0 (nothing like this exists on my linux build)
- boost_stacktrace_windbg_cached-1.71.0 (nothing like this exists on my linux build)
- boost_fiber_numa-1.71.0 (in addition to the just boost_fiber, no -numa library exists)
- boost_math-1.71.0 (in addition to _c99|_ctr1|etc)
- boost_headers-1.71.0 (no idea what it means..... just header locations without a library?!)
from boost_install.
The first three are conditionally-built libraries. For complicated Boost.Build reasons the decision to create the CMake config files is made at configure time, and the conditions that govern whether the libraries are built are evaluated later, at build time. Maybe this can be fixed, but it exceeds my Boost.Build abilities at present. :-)
boost_math
is my fault (boostorg/math@8d2c59c) and we should probably remove it as it should be no longer required.
boost_headers
is important and you do need it. It declares the Boost::headers
target that represents all header-only libraries and is the equivalent of the Boost::boost
target from FindBoost.
from boost_install.
from boost_install.
Ok, I shall install boost_headers into the main libboost-dev package next to the rest of headers.
I will ignore / purge the conditional libs.
Now, how do I use these CMake files in cmake projects? I.e. I want to convert some of cmake project which currently uses boost-python to use these new fancy cmake files. How can I do that?
Are there docs on how to use these cmake things?
from boost_install.
Sure, i don't care about configuring and building them, but they shouldn't be installed (which happens after building) thus should be like present in the builddir, but not installed into the prefix?
from boost_install.
Related Issues (20)
- Versioned symlinks are now installed, but used to not be
- PDB files should be installed along with DLLs HOT 1
- staging-prefix not respected by cmake files HOT 3
- Non-boost dependencies included in INTERFACE_LINK_LIBRARIES for shared libraries HOT 9
- Some CMake options are not marked as advanced HOT 1
- cmake configs don't allow static vs shared library paths
- Building without a library seems to install its headers HOT 2
- Boost_USE_STATIC_RUNTIME when not set should be autodetected from CMAKE_MSVC_RUNTIME_LIBRARY
- Why is "BOOST_ALL_NO_LIB" set automatically? HOT 12
- Boost.Stacktrace libraries are not being installed by `b2 install` HOT 2
- BoostDetectToolset.cmake needs to be updated to support detection of vc143 toolset with MSVC 2022 HOT 3
- IntelLLVM is not supported HOT 8
- boost_mpi tries to find the C++ MPI API HOT 1
- boost's cmake config files are not compatible with clang-cl HOT 4
- Boost_COMPILER should accept a list HOT 1
- Exported CMake config should use thirdparty lib targets and preferably find them on its own HOT 1
- boost_install license HOT 1
- Boost_USE_STATIC_LIBS deviates from FindBoost.cmake behaviour HOT 5
- Missing MPI::MPI_C dependency in boost::mpi targets HOT 1
- [boost1.68]Specifying more parameters will not generate cmake files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from boost_install.