diff --git a/CMakeLists.txt b/CMakeLists.txt index 23c5c1dc4b..e4e328ba99 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1503,6 +1503,10 @@ if(BUILD_SHARED) if(norm_FOUND) target_link_libraries(libzmq norm::norm) + + if (TARGET objects) + target_link_libraries(objects norm::norm) + endif() endif() endif() @@ -1552,6 +1556,10 @@ if(BUILD_STATIC) if(norm_FOUND) target_link_libraries(libzmq-static norm::norm) + + if (TARGET objects) + target_link_libraries(objects norm::norm) + endif() endif() endif()