projects
/
libam7xxx.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a07b63b
)
Fix usage of FIND_PATH, allow $FFMPEG_DIR to be used.
author
Reto Schneider <github@reto-schneider.ch>
Sun, 8 Apr 2012 12:24:43 +0000
(14:24 +0200)
committer
Reto Schneider <github@reto-schneider.ch>
Mon, 16 Apr 2012 23:38:29 +0000
(
01:38
+0200)
cmake_modules/FindFFmpeg.cmake
patch
|
blob
|
history
diff --git
a/cmake_modules/FindFFmpeg.cmake
b/cmake_modules/FindFFmpeg.cmake
index
1dc76d5
..
c88d694
100644
(file)
--- a/
cmake_modules/FindFFmpeg.cmake
+++ b/
cmake_modules/FindFFmpeg.cmake
@@
-27,11
+27,12
@@
MACRO(FFMPEG_FIND varname shortname headername)
# old version of ffmpeg put header in $prefix/include/[ffmpeg]
# so try to find header in include directory
FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS ${headername}
# old version of ffmpeg put header in $prefix/include/[ffmpeg]
# so try to find header in include directory
FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS ${headername}
-
PATH
S
+
HINT
S
${FFMPEG_ROOT}/include
$ENV{FFMPEG_DIR}/include
$ENV{OSGDIR}/include
$ENV{OSG_ROOT}/include
${FFMPEG_ROOT}/include
$ENV{FFMPEG_DIR}/include
$ENV{OSGDIR}/include
$ENV{OSG_ROOT}/include
+ PATHS
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
@@
-49,10
+50,12
@@
MACRO(FFMPEG_FIND varname shortname headername)
# so try to find lib${shortname}/header in include directory
IF(NOT FFMPEG_${varname}_INCLUDE_DIRS)
FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS lib${shortname}/${headername}
# so try to find lib${shortname}/header in include directory
IF(NOT FFMPEG_${varname}_INCLUDE_DIRS)
FIND_PATH(FFMPEG_${varname}_INCLUDE_DIRS lib${shortname}/${headername}
+ HINTS
${FFMPEG_ROOT}/include
$ENV{FFMPEG_DIR}/include
$ENV{OSGDIR}/include
$ENV{OSG_ROOT}/include
${FFMPEG_ROOT}/include
$ENV{FFMPEG_DIR}/include
$ENV{OSGDIR}/include
$ENV{OSG_ROOT}/include
+ PATHS
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
~/Library/Frameworks
/Library/Frameworks
/usr/local/include
@@
-69,11
+72,12
@@
MACRO(FFMPEG_FIND varname shortname headername)
FIND_LIBRARY(FFMPEG_${varname}_LIBRARIES
NAMES ${shortname}
FIND_LIBRARY(FFMPEG_${varname}_LIBRARIES
NAMES ${shortname}
-
PATH
S
+
HINT
S
${FFMPEG_ROOT}/lib
$ENV{FFMPEG_DIR}/lib
$ENV{OSGDIR}/lib
$ENV{OSG_ROOT}/lib
${FFMPEG_ROOT}/lib
$ENV{FFMPEG_DIR}/lib
$ENV{OSGDIR}/lib
$ENV{OSG_ROOT}/lib
+ PATHS
~/Library/Frameworks
/Library/Frameworks
/usr/local/lib
~/Library/Frameworks
/Library/Frameworks
/usr/local/lib