From 09c2a8b7ad5356fd21544369a6d7e2b0f2abafa8 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 21 Jun 2016 19:50:32 +0300 Subject: [PATCH] cmake: fix HAL dependencies for core module Linker dependencies are transitive for non-private --- modules/core/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/core/CMakeLists.txt b/modules/core/CMakeLists.txt index 171fa9b08..36c4eea5d 100644 --- a/modules/core/CMakeLists.txt +++ b/modules/core/CMakeLists.txt @@ -1,6 +1,7 @@ set(the_description "The Core Functionality") ocv_add_module(core - PRIVATE_REQUIRED ${ZLIB_LIBRARIES} "${OPENCL_LIBRARIES}" "${VA_LIBRARIES}" "${OPENCV_HAL_LINKER_LIBS}" + "${OPENCV_HAL_LINKER_LIBS}" + PRIVATE_REQUIRED ${ZLIB_LIBRARIES} "${OPENCL_LIBRARIES}" "${VA_LIBRARIES}" OPTIONAL opencv_cudev WRAP java python)