Commit 559d019387fc9d38c61de3a29973b52f33466da3
1 parent
a64bd9fe
fixed #421
Showing
1 changed file
with
4 additions
and
1 deletions
share/openbr/cmake/InstallDependencies.cmake
| @@ -135,7 +135,10 @@ function(install_ffmpeg) | @@ -135,7 +135,10 @@ function(install_ffmpeg) | ||
| 135 | else() | 135 | else() |
| 136 | set(FFMPEGSUFFIX "") | 136 | set(FFMPEGSUFFIX "") |
| 137 | endif() | 137 | endif() |
| 138 | - install(FILES ${cv_lib_stripped}/../bin/${BR_INSTALL_DEPENDENCIES_PREFIX}opencv_ffmpeg${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}${FFMPEGSUFFIX}.dll DESTINATION bin) | 138 | + set(FFMPEG_LIB "${cv_lib_stripped}/../bin/${BR_INSTALL_DEPENDENCIES_PREFIX}opencv_ffmpeg${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}${FFMPEGSUFFIX}.dll") |
| 139 | + if(EXISTS ${FFMPEG_LIB}) | ||
| 140 | + install(FILES ${FFMPEG_LIB} DESTINATION bin) | ||
| 141 | + endif() | ||
| 139 | else() | 142 | else() |
| 140 | # find_library(AVCODEC avcodec) | 143 | # find_library(AVCODEC avcodec) |
| 141 | # install_ffmpeg_help(${AVCODEC}) | 144 | # install_ffmpeg_help(${AVCODEC}) |