Merge pull request #16150 from alalek:cmake_avoid_deprecated_link_private
[platform/upstream/opencv.git] / modules / viz / CMakeLists.txt
index 1f1e1af..256b464 100644 (file)
@@ -27,10 +27,10 @@ endif()
 ocv_warnings_disable(CMAKE_CXX_FLAGS -Winconsistent-missing-override -Wsuggest-override)
 
 ocv_define_module(viz opencv_core WRAP python)
-ocv_target_link_libraries(${the_module} LINK_PRIVATE ${VTK_LIBRARIES})
+ocv_target_link_libraries(${the_module} PRIVATE ${VTK_LIBRARIES})
 
 if(APPLE AND BUILD_opencv_viz)
-  ocv_target_link_libraries(${the_module} LINK_PRIVATE "-framework Cocoa")
+  ocv_target_link_libraries(${the_module} PRIVATE "-framework Cocoa")
 endif()
 
 if(TARGET opencv_test_viz)