Skip to content

[CMake] Allow building only shared or static libraries #78

@BwL1289

Description

@BwL1289

Both shared and static libraries are built by default. It would be nice to only build one or the other.

For example, move add_library(ta-lib-static STATIC ${LIB_SOURCES}) and similar, to be built conditionally via an option.

option(BUILD_STATIC_LIBS "Build Static Libraries" OFF)

if (BUILD_STATIC_LIBS)
    add_library(ta-lib-static STATIC ${LIB_SOURCES})
...

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