Sophie

Sophie

distrib > Mageia > 8 > armv7hl > by-pkgid > be82b93ae315881a7b9507808417074f > files > 2

cppzmq-4.7.1-1.1.mga8.src.rpm

From e2552c41c9ed03abf7ae2202b22a253c2ad916df Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jani=20V=C3=A4limaa?= <wally@mageia.org>
Date: Sat, 10 Oct 2020 10:40:19 +0300
Subject: [PATCH] Skip zeromq static targets

---
 CMakeLists.txt | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 23e5136..493eae1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ include (DetectCPPZMQVersion)
 
 project(cppzmq VERSION ${DETECTED_CPPZMQ_VERSION})
 
-if (NOT TARGET libzmq AND NOT TARGET libzmq-static)
+if (NOT TARGET libzmq)
   find_package(ZeroMQ QUIET)
 
   # libzmq autotools install: fallback to pkg-config
@@ -21,7 +21,7 @@ if (NOT TARGET libzmq AND NOT TARGET libzmq-static)
     message(FATAL_ERROR "ZeroMQ was not found, neither as a CMake package nor via pkg-config")
   endif()
 
-  if (ZeroMQ_FOUND AND NOT (TARGET libzmq OR TARGET libzmq-static))
+  if (ZeroMQ_FOUND AND NOT TARGET libzmq)
     message(FATAL_ERROR "ZeroMQ version not supported!")
   endif()
 endif()
@@ -45,19 +45,18 @@ set(CPPZMQ_HEADERS
     zmq_addon.hpp
 )
 
-foreach (target cppzmq cppzmq-static)
+foreach (target cppzmq)
   add_library(${target} INTERFACE)
   target_include_directories(${target} INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
                                                  $<INSTALL_INTERFACE:include>)
 endforeach()
 
 target_link_libraries(cppzmq INTERFACE libzmq)
-target_link_libraries(cppzmq-static INTERFACE libzmq-static)
 
 include(GNUInstallDirs)
 include(CMakePackageConfigHelpers)
 
-install(TARGETS cppzmq cppzmq-static
+install(TARGETS cppzmq
         EXPORT ${PROJECT_NAME}-targets)
 
 install(FILES ${CPPZMQ_HEADERS}
-- 
2.28.0