From: Maksim Shabunin Date: Fri, 5 Oct 2018 13:38:44 +0000 (+0300) Subject: FFmpeg: correct licenses install location X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~517^2~10^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=09ef4c9cff9c6907623640bb632f03ae044336cb;p=platform%2Fupstream%2Fopencv.git FFmpeg: correct licenses install location --- diff --git a/3rdparty/ffmpeg/ffmpeg-download.ps1.in b/3rdparty/ffmpeg/ffmpeg-download.ps1.in index 589aa14..e92ef45 100644 --- a/3rdparty/ffmpeg/ffmpeg-download.ps1.in +++ b/3rdparty/ffmpeg/ffmpeg-download.ps1.in @@ -4,7 +4,7 @@ $output = "$PSScriptRoot\@OPENCV_BIN_INSTALL_PATH@\opencv_ffmpeg@OPENCV_DLLVERSI Write-Output ("=" * 120) try { - Get-content -Path "$PSScriptRoot\etc\licenses\ffmpeg-readme.txt" -ErrorAction 'Stop' + Get-content -Path "$PSScriptRoot\@OPENCV_LICENSES_INSTALL_PATH@\ffmpeg-readme.txt" -ErrorAction 'Stop' } catch { Write-Output "Refer to OpenCV FFmpeg wrapper readme notes about library usage / licensing details." } diff --git a/3rdparty/ffmpeg/ffmpeg.cmake b/3rdparty/ffmpeg/ffmpeg.cmake index cfa8ff4..c8ac9d5 100644 --- a/3rdparty/ffmpeg/ffmpeg.cmake +++ b/3rdparty/ffmpeg/ffmpeg.cmake @@ -40,3 +40,5 @@ if(OPENCV_INSTALL_FFMPEG_DOWNLOAD_SCRIPT) configure_file("${CMAKE_CURRENT_LIST_DIR}/ffmpeg-download.ps1.in" "${CMAKE_BINARY_DIR}/win-install/ffmpeg-download.ps1" @ONLY) install(FILES "${CMAKE_BINARY_DIR}/win-install/ffmpeg-download.ps1" DESTINATION "." COMPONENT libs) endif() + +ocv_install_3rdparty_licenses(ffmpeg license.txt readme.txt)