From 6b980ac59ce97fbac3f9f8a9dba9f1256bcfb8bd Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Wed, 15 Feb 2017 17:15:44 +0300 Subject: [PATCH] cmake: don't pass additional libraries as modules --- modules/dnn/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/dnn/CMakeLists.txt b/modules/dnn/CMakeLists.txt index 0b4310016..467959fa7 100644 --- a/modules/dnn/CMakeLists.txt +++ b/modules/dnn/CMakeLists.txt @@ -4,7 +4,7 @@ endif() set(the_description "Deep neural network module. It allows to load models from different frameworks and to make forward pass") -ocv_add_module(dnn opencv_core opencv_imgproc PRIVATE_REQUIRED "${LAPACK_LIBRARIES}" WRAP python matlab) +ocv_add_module(dnn opencv_core opencv_imgproc WRAP python matlab) ocv_warnings_disable(CMAKE_CXX_FLAGS -Wno-shadow -Wno-parentheses -Wmaybe-uninitialized -Wsign-promo -Wmissing-declarations -Wmissing-prototypes ) @@ -40,7 +40,7 @@ ocv_source_group("Src\\protobuf" FILES ${PROTOBUF_SRCS} ${PROTOBUF_HDRS}) ocv_module_include_directories(include ${PROTOBUF_INCLUDE_DIR}) ocv_glob_module_sources(${PROTOBUF_SRCS} ${PROTOBUF_HDRS} ${CBLAS_H_PROXY_PATH}) -ocv_create_module(${PROTOBUF_LIBRARIES}) +ocv_create_module(${PROTOBUF_LIBRARIES} ${LAPACK_LIBRARIES}) ocv_add_samples() ocv_add_accuracy_tests() ocv_add_perf_tests()