Skip to content

CPMAddPackage fails to propagate SYSTEM keyword #660

Open
@greole

Description

@greole

See title. It seems like if setting the SYSTEM keyword in CPMAddPackage it is not propagated to the cpm_add_subdirectory function. As a result dependencies are build with -I<path> instead of -isystem <path>.

Apparently, it works when specifying SYSTEM YES, which different to the behavior of FetchContent https://cmake.org/cmake/help/latest/module/FetchContent.html

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions