Resolve dependency issue
diff --git a/CMakeLists.txt b/CMakeLists.txt index 868599b..2bf2f2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt
@@ -983,6 +983,8 @@ endif() if(CONFIG_ML_PART_SPLIT AND CONFIG_AV1_ENCODER) + add_dependencies(aom cnpy) + target_link_libraries(aom PRIVATE cnpy) if(ENABLE_EXAMPLES OR ENABLE_TOOLS) foreach(aom_app ${AOM_APP_TARGETS}) add_dependencies(${aom_app} cnpy)
diff --git a/third_party/cnpy/CMakeLists.txt b/third_party/cnpy/CMakeLists.txt index d56e666..c9e6fce 100644 --- a/third_party/cnpy/CMakeLists.txt +++ b/third_party/cnpy/CMakeLists.txt
@@ -11,3 +11,4 @@ include_directories(${ZLIB_INCLUDE_DIRS}) add_library(cnpy STATIC "cnpy.cpp") +target_link_libraries(cnpy PRIVATE ${ZLIB_LIBRARIES})