mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
cmake(samples): use LINK_PRIVATE in target_link_libraries
This commit is contained in:
@@ -27,4 +27,4 @@ endif()
|
||||
add_executable(opencv_example example.cpp)
|
||||
|
||||
# Link your application with OpenCV libraries
|
||||
target_link_libraries(opencv_example ${OpenCV_LIBS})
|
||||
target_link_libraries(opencv_example LINK_PRIVATE ${OpenCV_LIBS})
|
||||
|
||||
Reference in New Issue
Block a user