Skip to content

No option to skip monolithic library build #2593

Description

@gmarzot

folly_create_monolithic_library() is called unconditionally in the top-level CMakeLists.txt. When folly is consumed via FetchContent / add_subdirectory, the granular component OBJECT libraries are already available as build targets. The monolithic libfolly.a may not be desired in some use cases e.g., downstream projects that link against the granular libs

Request: add a CMake option (e.g. FOLLY_BUILD_MONOLITHIC, defaulting to ON) to skip the monolithic library assembly. When off, an INTERFACE target named folly could aggregate the component targets so downstream target_link_libraries(... folly) calls continue to work without change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions