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.
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.