blob: 5b7418618d7334b62c11a30fff3a9a68ea0fa6c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FFmpeg is only needed for the optional Media Player. Don't try to find it
otherwise. RulesFFmpeg was split out from RulesMediaPlayer in [1], but was
not blocked in the ENABLE_MEDIAPLAYER conditional that it was previously
under, making FFmpeg unconditionally required.
[1] https://invent.kde.org/graphics/digikam/-/commit/44da06a0b008eb4030ae59e57c11a1341c157c8c
--- core/cmake/rules/RulesFFmpeg.cmake.orig 2024-03-16 04:40:45 UTC
+++ core/cmake/rules/RulesFFmpeg.cmake
@@ -4,6 +4,8 @@
# SPDX-License-Identifier: BSD-3-Clause
#
+if(ENABLE_MEDIAPLAYER)
+
find_package(FFmpeg REQUIRED COMPONENTS AVCODEC
AVDEVICE
AVFILTER
@@ -105,3 +107,5 @@ endif()
)
endif()
+
+endif(ENABLE_MEDIAPLAYER)
|