Files
gentoo/net-libs/cppzmq/files/cppzmq-4.9.0-disable-static.patch
David Roman 9e74b3947d net-libs/cppzmq: add 4.9.0
Signed-off-by: David Roman <davidroman96@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28363
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
2022-11-21 15:18:15 +01:00

22 lines
731 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 05001ad..c640fd7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()
@@ -52,7 +52,6 @@ foreach (target cppzmq cppzmq-static)
endforeach()
target_link_libraries(cppzmq INTERFACE libzmq)
-target_link_libraries(cppzmq-static INTERFACE libzmq-static)
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)