aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/freerdp/ffmpeg.diff
blob: 2e1fdfafef9af0dda83bdcbcdbd77f37657cc732 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)