From f44ecaa4f27e7538ddcad66d40e543bffa2d2d86 Mon Sep 17 00:00:00 2001 From: manuel Date: Sun, 4 Jun 2017 16:57:49 +0200 Subject: sync with upstream --- project/cmake/modules/FindZip.cmake | 46 ------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 project/cmake/modules/FindZip.cmake (limited to 'project/cmake/modules/FindZip.cmake') diff --git a/project/cmake/modules/FindZip.cmake b/project/cmake/modules/FindZip.cmake deleted file mode 100644 index e0a38c1..0000000 --- a/project/cmake/modules/FindZip.cmake +++ /dev/null @@ -1,46 +0,0 @@ -#.rst: -# FindZip -# ----------- -# Finds the Zip library -# -# This will will define the following variables:: -# -# ZIP_FOUND - system has Zip -# ZIP_INCLUDE_DIRS - the Zip include directory -# ZIP_LIBRARIES - the Zip libraries -# ZIP_DEFINITIONS - the Zip libraries -# -# and the following imported targets:: -# -# ZIP::ZIP - The Zip library - -if(PKG_CONFIG_FOUND) - pkg_check_modules(PC_ZIP libzip QUIET) -endif() - -find_path(ZIP_INCLUDE_DIR zip.h - PATHS ${PC_ZIP_INCLUDEDIR}) -find_library(ZIP_LIBRARY NAMES zip - PATHS ${PC_ZIP_LIBDIR}) -set(ZIP_VERSION ${PC_ZIP_VERSION}) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(ZIP - REQUIRED_VARS ZIP_LIBRARY ZIP_INCLUDE_DIR - VERSION_VAR ZIP_VERSION) - -if(ZIP_FOUND) - set(ZIP_LIBRARIES ${ZIP_LIBRARY}) - set(ZIP_INCLUDE_DIRS ${ZIP_INCLUDE_DIR}) - set(ZIP_DEFINITIONS "${PC_ZIP_CFLAGS}") - - if(NOT TARGET ZIP::ZIP) - add_library(ZIP::ZIP UNKNOWN IMPORTED) - set_target_properties(ZIP::ZIP PROPERTIES - IMPORTED_LOCATION "${ZIP_LIBRARY}" - INTERFACE_INCLUDE_DIRECTORIES "${ZIP_INCLUDE_DIR}" - INTERFACE_COMPILE_DEFINITIONS "${PC_ZIP_CFLAGS}") - endif() -endif() - -mark_as_advanced(ZIP_INCLUDE_DIR ZIP_LIBRARY) -- cgit v1.2.3