0
0
mirror of https://github.com/zeromq/libzmq.git synced 2024-12-26 06:41:03 +08:00

Problem: don't link to openpgm when building with cmake

Solution: Add `target_link_libraries()` to `libzmq` for openpgm when
openpgm has been enabled.
This commit is contained in:
Dennis Gosnell 2023-05-11 19:56:32 +09:00
parent 532b61275e
commit 5381be6c71

View File

@ -1515,6 +1515,10 @@ if(BUILD_SHARED)
if(norm_FOUND)
target_link_libraries(libzmq norm::norm)
endif()
if(OPENPGM_FOUND)
target_link_libraries(libzmq ${OPENPGM_LIBRARIES})
endif()
endif()
if(BUILD_STATIC)
@ -1565,6 +1569,10 @@ if(BUILD_STATIC)
if(norm_FOUND)
target_link_libraries(libzmq-static norm::norm)
endif()
if(OPENPGM_FOUND)
target_link_libraries(libzmq-static ${OPENPGM_LIBRARIES})
endif()
endif()
if(BUILD_SHARED)