[packages/vvdec] - added targets config install fix for custom CMAKE_BUILD_TYPE

qboosh qboosh at pld-linux.org
Sat Mar 21 10:19:59 CET 2026


commit 37510d06a2facf82162f508a726276c94acc57af
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Mar 21 10:20:11 2026 +0100

    - added targets config install fix for custom CMAKE_BUILD_TYPE

 vvdec-pld.patch | 33 +++++++++++++++++++++++++++++++++
 vvdec.spec      |  2 ++
 2 files changed, 35 insertions(+)
---
diff --git a/vvdec.spec b/vvdec.spec
index 556c877..0362814 100644
--- a/vvdec.spec
+++ b/vvdec.spec
@@ -14,6 +14,7 @@ Source0:	https://github.com/fraunhoferhhi/vvdec/archive/v%{version}/%{name}-%{ve
 # Source0-md5:	574fbeb4ddff1a7e064153f47d053c9d
 Patch0:		%{name}-pc.patch
 Patch1:		%{name}-no-simd.patch
+Patch2:		%{name}-pld.patch
 URL:		https://github.com/fraunhoferhhi/vvdec
 BuildRequires:	cmake >= 3.12.0
 # C++14
@@ -51,6 +52,7 @@ Pliki nagłówkowe biblioteki VVdeC.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 install -d build
diff --git a/vvdec-pld.patch b/vvdec-pld.patch
new file mode 100644
index 0000000..44234a3
--- /dev/null
+++ b/vvdec-pld.patch
@@ -0,0 +1,33 @@
+--- vvdec-3.1.0/cmake/modules/vvdecInstall.cmake.orig	2025-11-18 12:22:17.000000000 +0100
++++ vvdec-3.1.0/cmake/modules/vvdecInstall.cmake	2026-03-21 09:58:41.521724956 +0100
+@@ -75,10 +75,14 @@ endif()
+ 
+ 
+ # install targets
++if( CMAKE_BUILD_TYPE )
++install_targets( "${INSTALL_TARGETS}" "${CMAKE_BUILD_TYPE}" )
++else()
+ install_targets( "${INSTALL_TARGETS}" Release )
+ install_targets( "${INSTALL_TARGETS}" Debug )
+ install_targets( "${INSTALL_TARGETS}" RelWithDebInfo )
+ install_targets( "${INSTALL_TARGETS}" MinSizeRel )
++endif()
+ 
+ # install pdb files
+ install_lib_pdb( vvdec )
+@@ -107,10 +111,15 @@ else()
+ endif()
+ 
+ # create target cmake files
++if( CMAKE_BUILD_TYPE )
++string( TOLOWER ${CMAKE_BUILD_TYPE} build_type_lc_ )
++install( EXPORT vvdecTargets-${build_type_lc_} NAMESPACE vvdec:: FILE vvdecTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS ${CMAKE_BUILD_TYPE} DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvdec )
++else()
+ install( EXPORT vvdecTargets-release        NAMESPACE vvdec:: FILE vvdecTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS Release        DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvdec )
+ install( EXPORT vvdecTargets-debug          NAMESPACE vvdec:: FILE vvdecTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS Debug          DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvdec )
+ install( EXPORT vvdecTargets-relwithdebinfo NAMESPACE vvdec:: FILE vvdecTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS RelWithDebInfo DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvdec )
+ install( EXPORT vvdecTargets-minsizerel     NAMESPACE vvdec:: FILE vvdecTargets-${CONFIG_POSTFIX}.cmake CONFIGURATIONS MinSizeRel     DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/vvdec )
++endif()
+ 
+ 
+ function( resolve_target_interface_libs TGT OUT_VAR )
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vvdec.git/commitdiff/37510d06a2facf82162f508a726276c94acc57af



More information about the pld-cvs-commit mailing list