From f1200c5fbf2ec7a195c2877f58a5cafb845f7ae9 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Thu, 3 Feb 2022 11:36:06 +0000 Subject: [PATCH] cmake(sfm): fix sfm static target dependencies --- modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt b/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt index 95dbebe4474..b950665325a 100644 --- a/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt +++ b/modules/sfm/src/libmv_light/libmv/correspondence/CMakeLists.txt @@ -8,7 +8,7 @@ FILE(GLOB CORRESPONDENCE_HDRS *.h) ADD_LIBRARY(correspondence STATIC ${CORRESPONDENCE_SRC} ${CORRESPONDENCE_HDRS}) -TARGET_LINK_LIBRARIES(correspondence LINK_PRIVATE ${GLOG_LIBRARIES} multiview) +ocv_target_link_libraries(correspondence LINK_PRIVATE ${GLOG_LIBRARIES} multiview opencv_imgcodecs) IF(TARGET Eigen3::Eigen) TARGET_LINK_LIBRARIES(correspondence LINK_PUBLIC Eigen3::Eigen) ENDIF()