boostorg / boostorg/boost_install

Boost_USE_STATIC_LIBS deviates from FindBoost.cmake behaviour

Open
#66 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
11
Forks
37
PR merge metrics
No merged PRs in 30d

Description

In the Find module, Boost_USE_STATIC_LIBS=OFF means that it is allowed to find either a dynamic version of boost **or** a static version.

With your config file, Boost_USE_STATIC_LIBS=OFF forces shared-only.

a) Why the deviation? This makes consistent CMake scripts very difficult if one wants to support older boosts without the config.
~~b) Why those arbitrary choices for the value OFF? Shouldn't the consumer decide?! How would one even choose shared/dynamic boost on Windows with this?~~ Edit: corrected

While this is considered, can you recommend a quick fix on how to use this config to find either shared or static? After all, many builds are agnostic to how boost was linked.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.