We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be01e03 commit abc1277Copy full SHA for abc1277
1 file changed
cmake/opencv_config.cmake
@@ -32,9 +32,11 @@ set(_opencv_cmake_args
32
-DBUILD_PERF_TESTS=OFF
33
-DBUILD_TESTS=OFF
34
-DBUILD_opencv_apps=OFF
35
+ -DBUILD_opencv_dnn=OFF
36
-DBUILD_JAVA=OFF
37
-DBUILD_opencv_world=ON
38
-DBUILD_SHARED_LIBS=ON
39
+ -DWITH_FFMPEG=OFF
40
)
41
42
if(CMAKE_C_COMPILER_LAUNCHER)
@@ -103,6 +105,11 @@ target_include_directories(OpenCV_unified INTERFACE
103
105
"${OPENCV_INSTALL_DIR}/include"
104
106
"${OPENCV_INSTALL_DIR}/include/opencv4"
107
108
+if(APPLE OR UNIX)
109
+ target_link_options(OpenCV_unified INTERFACE
110
+ "-Wl,-rpath,${OPENCV_WORLD_LIB_DIR}"
111
+ )
112
+endif()
113
114
if(WIN32)
115
add_custom_target(copy_opencv_runtime
0 commit comments