diff --git a/ModelOptimizations/DlCompression/CMakeLists.txt b/ModelOptimizations/DlCompression/CMakeLists.txt index dd8b857502..28bc398a0f 100644 --- a/ModelOptimizations/DlCompression/CMakeLists.txt +++ b/ModelOptimizations/DlCompression/CMakeLists.txt @@ -50,6 +50,7 @@ target_link_libraries(MoDlCompression PUBLIC pybind11 ${LAPACKE_LINK_LIBRARIES} ${OPENCV_LINK_LIBRARIES} + z ) target_compile_options(MoDlCompression diff --git a/ModelOptimizations/DlEqualization/CMakeLists.txt b/ModelOptimizations/DlEqualization/CMakeLists.txt index 7be4d7a66d..5fa9a3e3d1 100644 --- a/ModelOptimizations/DlEqualization/CMakeLists.txt +++ b/ModelOptimizations/DlEqualization/CMakeLists.txt @@ -67,6 +67,7 @@ target_include_directories(MoDlEqualization target_link_libraries(MoDlEqualization PUBLIC pybind11 ${OPENCV_LINK_LIBRARIES} + z ) target_compile_options(MoDlEqualization diff --git a/ModelOptimizations/PyModelOptimizations/CMakeLists.txt b/ModelOptimizations/PyModelOptimizations/CMakeLists.txt index 484b66da86..a190426925 100644 --- a/ModelOptimizations/PyModelOptimizations/CMakeLists.txt +++ b/ModelOptimizations/PyModelOptimizations/CMakeLists.txt @@ -45,6 +45,7 @@ target_link_libraries(PyModelOptimizations PUBLIC MoDlEqualization MoDlCompression ${OPENCV_LINK_LIBRARIES} + z ) if (ENABLE_CUDA)