diff --git a/CMakeLists.txt b/CMakeLists.txt index 9940da15..58fc37d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)