Fix finding libspng with CMake (#262)

The macro should be included before usage, this include is not
auto-generated by @PACKAGE_INIT@
This commit is contained in:
Dmitry Kazakov 2023-12-20 15:03:15 +01:00 committed by GitHub
parent e5c1fc470f
commit adc94393db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,7 @@
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(ZLIB REQUIRED)
include("${CMAKE_CURRENT_LIST_DIR}/@targets_export_name@.cmake")