Skip to content

Commit abc1277

Browse files
committed
Fix OpenCV ExternalProject and CI runtime paths
1 parent be01e03 commit abc1277

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

cmake/opencv_config.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,11 @@ set(_opencv_cmake_args
3232
-DBUILD_PERF_TESTS=OFF
3333
-DBUILD_TESTS=OFF
3434
-DBUILD_opencv_apps=OFF
35+
-DBUILD_opencv_dnn=OFF
3536
-DBUILD_JAVA=OFF
3637
-DBUILD_opencv_world=ON
3738
-DBUILD_SHARED_LIBS=ON
39+
-DWITH_FFMPEG=OFF
3840
)
3941

4042
if(CMAKE_C_COMPILER_LAUNCHER)
@@ -103,6 +105,11 @@ target_include_directories(OpenCV_unified INTERFACE
103105
"${OPENCV_INSTALL_DIR}/include"
104106
"${OPENCV_INSTALL_DIR}/include/opencv4"
105107
)
108+
if(APPLE OR UNIX)
109+
target_link_options(OpenCV_unified INTERFACE
110+
"-Wl,-rpath,${OPENCV_WORLD_LIB_DIR}"
111+
)
112+
endif()
106113

107114
if(WIN32)
108115
add_custom_target(copy_opencv_runtime

0 commit comments

Comments
 (0)