Closed BraHei closed 11 months ago
I am currently using boost with FetchContent and want to install boost along with the main project.
What is your use case? It's generally undesirable for projects to install Boost distributions; this can easily lead to a broken system or one with more than one version of Boost, which leads to subtle and hard to detect errors.
Do you really need to install Boost headers along with your project? What is your project?
In order to distribute a SDK I want to provide as much dependencies as possible. The SDK is distributed either through a GIT repo or through debian packages.
When the GIT repo is used, it is possible to create a custom installation dir (through CMAKE_INSTALL_PREFIX) with all dependecies included.
I see your point with the multiple boost versions being an issue, this is why I want to explicitly make it possible to be able to install boost along with the SDK as this makes sure the right version is available.
I am currently using boost with FetchContent and want to install boost along with the main project.
This is currently not possible since BOOST_SKIP_INSTALL_RULES is set on OFF if boost is not the root project.
Would it be feasible to check if the flag is defined and if not set it to OFF as such:
If not, could that be elaborated? I couldn't find any documentation on this specifically.