mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-26 23:01:04 +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:
parent
532b61275e
commit
5381be6c71
@ -1515,6 +1515,10 @@ if(BUILD_SHARED)
|
|||||||
if(norm_FOUND)
|
if(norm_FOUND)
|
||||||
target_link_libraries(libzmq norm::norm)
|
target_link_libraries(libzmq norm::norm)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(OPENPGM_FOUND)
|
||||||
|
target_link_libraries(libzmq ${OPENPGM_LIBRARIES})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_STATIC)
|
if(BUILD_STATIC)
|
||||||
@ -1565,6 +1569,10 @@ if(BUILD_STATIC)
|
|||||||
if(norm_FOUND)
|
if(norm_FOUND)
|
||||||
target_link_libraries(libzmq-static norm::norm)
|
target_link_libraries(libzmq-static norm::norm)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(OPENPGM_FOUND)
|
||||||
|
target_link_libraries(libzmq-static ${OPENPGM_LIBRARIES})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BUILD_SHARED)
|
if(BUILD_SHARED)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user