Skip to content

Commit 54efcfe

Browse files
author
Clement Champetier
committed
Cmake FindFFmpeg: fix pkg config
When we get FFmpeg from system install on linux, we use pkg config files. This commit fixes some variables related to pkg config informations.
1 parent 0d9e4fa commit 54efcfe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

cmake/FindFFmpeg.cmake

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,12 @@ macro(find_component COMPONENT PKGCONFIG LIBRARY HEADER)
4949

5050
find_path(${COMPONENT}_INCLUDE_DIR
5151
${HEADER}
52-
PATH ${PC_LIB${COMPONENT}_INCLUDEDIR} ${PC_LIB${COMPONENT}_INCLUDE_DIR}
53-
PATH_SUFFIXES ffmpeg libav
52+
HINTS ${PC_${COMPONENT}_INCLUDEDIR} ${PC_${COMPONENT}_INCLUDE_DIR}
5453
)
5554

5655
find_library(${COMPONENT}_LIBRARIES
5756
NAMES ${LIBRARY}
58-
PATH ${PC_LIB${COMPONENT}_LIBDIR} ${PC_LIB${COMPONENT}_LIBRARY_DIRS}
57+
HINTS ${PC_${COMPONENT}_LIBDIR} ${PC_${COMPONENT}_LIBRARY_DIRS}
5958
)
6059

6160
set(${COMPONENT}_DEFINITIONS ${PC_${COMPONENT}_CFLAGS_OTHER} CACHE STRING "The ${COMPONENT} CFLAGS.")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy