Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions cmake/NekoFunctionConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
@PACKAGE_INIT@

# Find required dependencies
# Note: find_dependency() must not be given REQUIRED or QUIET; it forwards the
# REQUIRED/QUIET-ness requested by the caller of find_package(NekoFunction).
include(CMakeFindDependencyMacro)
find_dependency(NekoSchema REQUIRED)
find_dependency(NekoSchema)

# Find optional dependencies based on enabled features
# These are set during package configuration
set(NEKO_FUNCTION_HAS_HASH @NEKO_FUNCTION_ENABLE_HASH@)
set(NEKO_FUNCTION_HAS_ARCHIVE @NEKO_FUNCTION_ENABLE_ARCHIVE@)

if(NEKO_FUNCTION_HAS_HASH)
find_dependency(OpenSSL REQUIRED)
find_dependency(OpenSSL)
endif()

if(NEKO_FUNCTION_HAS_ARCHIVE)
find_dependency(minizip-ng REQUIRED)
find_dependency(minizip-ng)
endif()

# Include the targets file
Expand Down
Loading