From 51a03ed1a568ba8aba8f2b63e12b6bb5230c7494 Mon Sep 17 00:00:00 2001 From: Murilo M Marinho <46012516+mmmarinho@users.noreply.github.com> Date: Tue, 26 Nov 2024 13:07:33 +0000 Subject: [PATCH] [CMakeLists.txt] Fixing linker flag for ubuntu which was not finding zmq when library was imported. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a91c959..dfd0278 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -153,3 +153,6 @@ pybind11_add_module(_dqrobotics if(APPLE) target_link_libraries(_dqrobotics PRIVATE cppzmq) endif() +if(UNIX AND NOT APPLE) + target_link_libraries(_dqrobotics PRIVATE zmq) +endif()