mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-12 10:33:52 +01: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)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user