vcpkg/ports/freerdp/ffmpeg.diff

18 lines
697 B
Diff

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)