mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 17:59:02 +08:00
673c55fb04
* [OpenImageIO] Enable featrue ffmpeg with oiio * x-add-version * Also disable docs. Co-authored-by: Lily Wang <v-lilywang@microsoft.com> Co-authored-by: Billy Robert O'Neal <bion@microsoft.com>
18 lines
675 B
Diff
18 lines
675 B
Diff
diff --git a/src/ffmpeg.imageio/CMakeLists.txt b/src/ffmpeg.imageio/CMakeLists.txt
|
|
index 5840206..cc52e4c 100644
|
|
--- a/src/ffmpeg.imageio/CMakeLists.txt
|
|
+++ b/src/ffmpeg.imageio/CMakeLists.txt
|
|
@@ -2,9 +2,10 @@
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
# https://github.com/OpenImageIO/oiio
|
|
|
|
-if (FFmpeg_FOUND)
|
|
+if (USE_FFMPEG)
|
|
+ find_package(FFMPEG REQUIRED)
|
|
add_oiio_plugin (ffmpeginput.cpp
|
|
- INCLUDE_DIRS ${FFMPEG_INCLUDES}
|
|
+ INCLUDE_DIRS ${FFMPEG_INCLUDE_DIRS}
|
|
LINK_LIBRARIES ${FFMPEG_LIBRARIES}
|
|
${BZIP2_LIBRARIES}
|
|
DEFINITIONS "-DUSE_FFMPEG"
|