vcpkg/ports/libde265/fix-lib-version.patch
Cheney Wang 14a96b1980
[libde265] Fix incorrect pc file (#31477)
* [libde265] Fix incorrect pc file

* Apply upstream change
2023-05-18 11:28:08 -07:00

12 lines
550 B
Diff

diff --git a/libde265/CMakeLists.txt b/libde265/CMakeLists.txt
index 2856f90..ccbc8b6 100644
--- a/libde265/CMakeLists.txt
+++ b/libde265/CMakeLists.txt
@@ -147,5 +147,6 @@ else()
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
endif()
+set(VERSION ${PROJECT_VERSION}) # so that the replacement in libde265.pc will work with both autotools and CMake
configure_file(../libde265.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libde265.pc @ONLY)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libde265.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)