From 2f6857e267b0eedee5f2842429172c38c1972a3a Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Tue, 13 Apr 2021 01:00:48 +0200 Subject: [PATCH] add zip::zip alias target (#180) it is consistent with zip::zip imported target in generated config file --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8f8b111..966af27 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,7 @@ option(ZIP_BUILD_DOCS "Generate API documentation with Doxygen" OFF) set(SRC src/miniz.h src/zip.h src/zip.c) add_library(${PROJECT_NAME} ${SRC}) +add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) if(ZIP_STATIC_PIC) set_property(TARGET ${PROJECT_NAME} PROPERTY POSITION_INDEPENDENT_CODE 1)