Skip to content

FetchContent failure when using CPM on a single project with multiple subdirectories with cmake < 3.17 #505

Open
@Anton3

Description

@Anton3

Related: #192

Minimal structure:

.
├── CMakeLists.txt
├── get_cpm.cmake
├── libA
│   └── CMakeLists.txt
└── libB
    └── CMakeLists.txt

Here, both libA and libB use the same get_cpm.cmake to download their third-party dependencies.

The symptoms are the same as in #192. The solution is the same as well, we just need to relax the conditions for the extra include(FetchContent).

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