You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
1.2 KiB

  1. From 68546793d3ead9fef78f4b6670b4bee92ae99bc8 Mon Sep 17 00:00:00 2001
  2. From: Ye Holmes <yeholmes@outlook.com>
  3. Date: Wed, 17 Feb 2021 19:26:52 +0800
  4. Subject: [PATCH] fix-openpgm-linking-for-zeromq
  5. ---
  6. CMakeLists.txt | 8 +++++++-
  7. 1 file changed, 7 insertions(+), 1 deletion(-)
  8. --- a/CMakeLists.txt
  9. +++ b/CMakeLists.txt
  10. @@ -793,7 +793,7 @@ else()
  11. # message(FATAL_ERROR "WITH_OPENPGM not implemented")
  12. if(NOT OPENPGM_PKGCONFIG_NAME)
  13. - set(OPENPGM_PKGCONFIG_NAME "openpgm-5.2")
  14. + set(OPENPGM_PKGCONFIG_NAME "openpgm-5.3")
  15. endif()
  16. set(OPENPGM_PKGCONFIG_NAME
  17. @@ -804,6 +804,8 @@ else()
  18. if(OPENPGM_FOUND)
  19. message(STATUS ${OPENPGM_PKGCONFIG_NAME}" found")
  20. + find_library(OPENPGM_LIBRARIES NAMES libpgm pgm)
  21. + set(pkg_config_libs_private "${pkg_config_libs_private} -lpgm")
  22. set(pkg_config_names_private "${pkg_config_names_private} ${OPENPGM_PKGCONFIG_NAME}")
  23. else()
  24. message(
  25. @@ -1447,6 +1449,10 @@ if(BUILD_SHARED)
  26. endif()
  27. endif()
  28. + if(OPENPGM_FOUND)
  29. + target_link_libraries(libzmq ${OPENPGM_LIBRARIES})
  30. + endif()
  31. +
  32. if(HAVE_WS2_32)
  33. target_link_libraries(libzmq ws2_32)
  34. elseif(HAVE_WS2)