google / google/XNNPACK

Build error when including XNNPACK using FetchContent

Open
#5,669 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
2.5k
Forks
560
Avg merge
1d 6h
Merged PRs (30d)
163

Description

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

e.g.
```cmake
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/Config.cmake.in` does not exist:

https://github.com/google/XNNPACK/blob/21df17dd436635621588ce9de1e79bae4c9d4a4b/CMakeLists.txt#L958

@ConnorBaker Is this expected?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.