2023-04-26 13:40:19 +08:00
|
|
|
message(WARNING "'find_package(minizip CONFIG)' is deprecated. Please use 'find_package(unofficial-minizip CONFIG)' instead.")
|
2019-11-26 07:54:49 +08:00
|
|
|
|
2021-06-17 05:39:53 +08:00
|
|
|
include(CMakeFindDependencyMacro)
|
2023-04-26 13:40:19 +08:00
|
|
|
find_dependency(unofficial-minizip ${${CMAKE_FIND_PACKAGE_NAME}_FIND_VERSION} CONFIG)
|
|
|
|
if(NOT TARGET unofficial::minizip::minizip)
|
|
|
|
set(${CMAKE_FIND_PACKAGE_NAME}_FOUND FALSE)
|
|
|
|
elseif(NOT TARGET minizip::minizip)
|
|
|
|
add_library(minizip::minizip INTERFACE IMPORTED)
|
|
|
|
set_target_properties(minizip::minizip PROPERTIES INTERFACE_LINK_LIBRARIES unofficial::minizip::minizip)
|
2021-06-17 05:39:53 +08:00
|
|
|
endif()
|