diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index 71407459c..fb8f29022 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -9,7 +9,7 @@ endif() set(the_description "Deep neural network module. It allows to load models from different frameworks and to make forward pass") set(OPENCV_MODULE_IS_PART_OF_WORLD OFF) -ocv_add_module(dnn opencv_core opencv_imgproc WRAP python matlab) +ocv_add_module(dnn opencv_core opencv_imgproc PRIVATE_REQUIRED "${LAPACK_LIBRARIES}" WRAP python matlab) ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-shadow -Wno-parentheses -Wmaybe-uninitialized -Wsign-promo -Wmissing-declarations -Wmissing-prototypes )