Skip to content

Boost_USE_STATIC_LIBS deviates from FindBoost.cmake behaviour #66

@jpfeuffer

Description

@jpfeuffer

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.

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