Skip to content

Commit

Permalink
Fix installed cmake config file
Browse files Browse the repository at this point in the history
Currently, when use `find_package(SPNG CONFIG REQUIRED)` , an error
occurred.
```
CMake Error at vcpkg/installed/x64-windows/share/spng/SPNGConfig.cmake:27 (find_dependency):
  Unknown CMake command "find_dependency".
```

Reference: microsoft/vcpkg#35412
  • Loading branch information
FantasqueX committed Nov 30, 2023
1 parent e5c1fc4 commit 6d6dea0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/Config.cmake.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@PACKAGE_INIT@

include(CMakeFindDependencyMacro)
find_dependency(ZLIB REQUIRED)

include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]")
Expand Down

0 comments on commit 6d6dea0

Please sign in to comment.