aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/freerdp/ffmpeg.diff
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/freerdp/ffmpeg.diff')
-rw-r--r--vcpkg/ports/freerdp/ffmpeg.diff17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/freerdp/ffmpeg.diff b/vcpkg/ports/freerdp/ffmpeg.diff
new file mode 100644
index 0000000..2e1fdfa
--- /dev/null
+++ b/vcpkg/ports/freerdp/ffmpeg.diff
@@ -0,0 +1,17 @@
+diff --git a/cmake/FindFFmpeg.cmake b/cmake/FindFFmpeg.cmake
+index 0e5f7be..af23774 100644
+--- a/cmake/FindFFmpeg.cmake
++++ b/cmake/FindFFmpeg.cmake
+@@ -86,7 +86,11 @@ endmacro()
+ # include directories.
+ #
+ macro(find_component _component _pkgconfig _library _header)
+- if(NOT WIN32)
++ find_package(PkgConfig)
++ pkg_check_modules(PC_${_component} ${_pkgconfig})
++ set(${_component}_INCLUDE_DIRS "${PC_${_component}_INCLUDE_DIRS}" CACHE STRING "")
++ set(${_component}_LIBRARIES "${PC_${_component}_LINK_LIBRARIES}" CACHE STRING "")
++ if(0)
+ # use pkg-config to get the directories and then use these values
+ # in the FIND_PATH() and FIND_LIBRARY() calls
+ find_package(PkgConfig)