Skip to content

Build error when including XNNPACK using FetchContent #5669

@skottmckay

Description

@skottmckay

If I include XNNPACK as a checksummed archive for security reasons using FetchContent

e.g.

FetchContent_Declare(googlexnnpack URL https://github.com/google/XNNPACK/archive/21df17dd436635621588ce9de1e79bae4c9d4a4b.zip URL_HASH SHA1=dbd0c6c161894d35f17df07e892f434b10146b07)
FetchContent_MakeAvailable(googlexnnpack)

the recent change in #5031 results in the build breaking as CMAKE_PROJECT_NAME is set to my project's name and cmake/<my arbitrary project name>Config.cmake.in does not exist:

"${CMAKE_CURRENT_SOURCE_DIR}/cmake/${CMAKE_PROJECT_NAME}Config.cmake.in"

@ConnorBaker Is this expected?

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