Skip to content

Commit 93a3051

Browse files
committed
fix output of version in libde265.pc (#407)
1 parent 0b1752a commit 93a3051

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libde265/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,5 +151,6 @@ else()
151151
set(includedir "\${prefix}/${CMAKE_INSTALL_INCLUDEDIR}")
152152
endif()
153153

154+
set(VERSION ${PROJECT_VERSION}) # so that the replacement in libde265.pc will work with both autotools and CMake
154155
configure_file(../libde265.pc.in ${CMAKE_CURRENT_BINARY_DIR}/libde265.pc @ONLY)
155156
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/libde265.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)

0 commit comments

Comments
 (0)