From 559d019387fc9d38c61de3a29973b52f33466da3 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 4 Sep 2015 12:34:48 -0400 Subject: [PATCH] fixed #421 --- share/openbr/cmake/InstallDependencies.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/share/openbr/cmake/InstallDependencies.cmake b/share/openbr/cmake/InstallDependencies.cmake index 29eedd3..aa2be67 100644 --- a/share/openbr/cmake/InstallDependencies.cmake +++ b/share/openbr/cmake/InstallDependencies.cmake @@ -135,7 +135,10 @@ function(install_ffmpeg) else() set(FFMPEGSUFFIX "") endif() - 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) + set(FFMPEG_LIB "${cv_lib_stripped}/../bin/${BR_INSTALL_DEPENDENCIES_PREFIX}opencv_ffmpeg${OpenCV_VERSION_MAJOR}${OpenCV_VERSION_MINOR}${OpenCV_VERSION_PATCH}${FFMPEGSUFFIX}.dll") + if(EXISTS ${FFMPEG_LIB}) + install(FILES ${FFMPEG_LIB} DESTINATION bin) + endif() else() # find_library(AVCODEC avcodec) # install_ffmpeg_help(${AVCODEC}) -- libgit2 0.21.4