We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c4730da commit d9f3a6bCopy full SHA for d9f3a6b
src/CMakeLists.txt
@@ -330,8 +330,13 @@ find_package(ZeroMQ REQUIRED) # Creates libzmq target
330
# others (Ubuntu) bundle them in with libzmq itself
331
find_package(cppzmq QUIET) # Creates cppzmq target
332
333
-# Include ZeroMQ headers (needed for compile)
334
-target_link_libraries(openshot PUBLIC libzmq)
+# Link ZeroMQ (shared or static, whichever's found)
+if (TARGET libzmq)
335
+ target_link_libraries(openshot PUBLIC libzmq)
336
+elseif (TARGET libzmq-static)
337
+ target_link_libraries(openshot PRIVATE libzmq-static)
338
+endif()
339
+# Include cppzmq headers, if not bundled into libzmq
340
if (TARGET cppzmq)
341
target_link_libraries(openshot PUBLIC cppzmq)
342
endif()
0 commit comments