From 3c892bcf636104eabc58800b3518de351b979e51 Mon Sep 17 00:00:00 2001 From: cc Date: Fri, 2 Sep 2022 14:13:25 +0800 Subject: [PATCH] Problem: fix with_norm error --- CMakeLists.txt | 8 ++++++++ 1 file changed, 8 insertions(+) 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()