Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
ac2e4b77
Commit
ac2e4b77
authored
Feb 25, 2008
by
Faustino Osuna
Browse files
cmake/FindFFmpeg.cmake: Add sub library's CFLAGS to FFmpeg_CFLAGS.
parent
d68d15e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
extras/buildsystem/cmake/include/FindFFmpeg.cmake
View file @
ac2e4b77
...
@@ -19,6 +19,8 @@ if (NOT FFmpeg_SEARCHED)
...
@@ -19,6 +19,8 @@ if (NOT FFmpeg_SEARCHED)
foreach
(
library ffmpeg avcodec avformat avutil postproc swscale
)
foreach
(
library ffmpeg avcodec avformat avutil postproc swscale
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
if
(
${
library
}
_LIBRARY
)
pkg_check_modules
(
${
library
}
_LIBRARY lib
${
library
}
)
set
(
FFmpeg_CFLAGS
"
${
FFmpeg_CFLAGS
}
${${
library
}
_LIBRARY_CFLAGS
}
"
)
set
(
FFmpeg_LIBRARIES
"
${
library
}
;
${
FFmpeg_LIBRARIES
}
"
)
set
(
FFmpeg_LIBRARIES
"
${
library
}
;
${
FFmpeg_LIBRARIES
}
"
)
set
(
FFmpeg_FOUND TRUE CACHE INTERNAL
""
)
set
(
FFmpeg_FOUND TRUE CACHE INTERNAL
""
)
endif
(
${
library
}
_LIBRARY
)
endif
(
${
library
}
_LIBRARY
)
...
@@ -26,6 +28,8 @@ if (NOT FFmpeg_SEARCHED)
...
@@ -26,6 +28,8 @@ if (NOT FFmpeg_SEARCHED)
foreach
(
library a52 faac lame z png mp3lame twolame
)
foreach
(
library a52 faac lame z png mp3lame twolame
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
find_library
(
${
library
}
_LIBRARY
${
library
}
)
if
(
${
library
}
_LIBRARY
)
if
(
${
library
}
_LIBRARY
)
pkg_check_modules
(
${
library
}
_LIBRARY lib
${
library
}
)
set
(
FFmpeg_CFLAGS
"
${
FFmpeg_CFLAGS
}
${${
library
}
_LIBRARY_CFLAGS
}
"
)
set
(
FFmpeg_LIBRARIES
"
${
library
}
;
${
FFmpeg_LIBRARIES
}
"
)
set
(
FFmpeg_LIBRARIES
"
${
library
}
;
${
FFmpeg_LIBRARIES
}
"
)
endif
(
${
library
}
_LIBRARY
)
endif
(
${
library
}
_LIBRARY
)
endforeach
(
library
)
endforeach
(
library
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment