mirror of
https://github.com/opencv/opencv.git
synced 2026-07-21 19:33:03 +04:00
Merge pull request #16150 from alalek:cmake_avoid_deprecated_link_private
* cmake: avoid deprecated LINK_PRIVATE/LINK_PUBLIC see CMP0023 (CMake 2.8.12+) * cmake: fix 3rdparty list - don't include OpenCV modules
This commit is contained in:
committed by
GitHub
parent
f62241b780
commit
a45928045a
@@ -39,4 +39,4 @@ message(STATUS " include path: ${OpenCV_INCLUDE_DIRS}")
|
||||
add_executable(${EXAMPLE_NAME} "${EXAMPLE_FILE}")
|
||||
|
||||
# Link your application with OpenCV libraries
|
||||
target_link_libraries(${EXAMPLE_NAME} LINK_PRIVATE ${OpenCV_LIBS})
|
||||
target_link_libraries(${EXAMPLE_NAME} PRIVATE ${OpenCV_LIBS})
|
||||
|
||||
Reference in New Issue
Block a user