Skip to content

boost configured with -DBOOST_INCLUDE_LIBRARIES=headers does not install headers #107

Description

@tfry-git

I'm trying to install only the boost headers using the cmake build system. My impression was that this could be achieved by configuring with cmake -DBOOST_INCLUDE_LIBRARIES=headers. However, this seems to result in installing only the cmake files, but not the headers.

In direct comparison, using b2, bootstrap --with-libraries=headers works as expected.

In detail:

wget https://github.com/boostorg/boost/releases/download/boost-1.92.0/boost-1.92.0-cmake.tar.xz
tar xf boost-1.92.0-cmake.tar.xz
cd boost-1.92.0
cmake -DBOOST_INCLUDE_LIBRARIES=headers .
make install DESTDIR=/tmp

Full output of make install:

Install the project...
-- Install configuration: "Release"
-- Up-to-date: /tmp/usr/local/include
-- Up-to-date: /tmp/usr/local/include/boost
-- Up-to-date: /tmp/usr/local/include/boost/headers
-- Up-to-date: /tmp/usr/local/include/boost/headers/.gitkeep
-- Installing: /tmp/usr/local/lib/cmake/boost_headers-1.92.0/boost_headers-targets.cmake
-- Installing: /tmp/usr/local/lib/cmake/boost_headers-1.92.0/boost_headers-config.cmake
-- Installing: /tmp/usr/local/lib/cmake/boost_headers-1.92.0/boost_headers-config-version.cmake
-- Up-to-date: /tmp/usr/local/lib/cmake/Boost-1.92.0/BoostConfig.cmake
-- Installing: /tmp/usr/local/lib/cmake/Boost-1.92.0/BoostConfigVersion.cmake

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions