summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2017-02-05 08:45:34 (GMT)
committerMichał Górny <mgorny@gentoo.org>2017-02-05 08:47:00 (GMT)
commit96e150e7df2bd76e3507f64cea61e6d0f72c93ec (patch)
tree68f572e064b762950dd2cd106125335ce76d1638 /contrib
parent67abd75e65311d608abae30fa296cab8715b17f4 (diff)
downloadlz4-96e150e7df2bd76e3507f64cea61e6d0f72c93ec.zip
lz4-96e150e7df2bd76e3507f64cea61e6d0f72c93ec.tar.gz
lz4-96e150e7df2bd76e3507f64cea61e6d0f72c93ec.tar.bz2
[cmake] Fix substituting version in liblz4.pc
Bug: https://bugs.gentoo.org/608144
Diffstat (limited to 'contrib')
-rw-r--r--contrib/cmake_unofficial/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/cmake_unofficial/CMakeLists.txt b/contrib/cmake_unofficial/CMakeLists.txt
index 9a0983d..e59a756 100644
--- a/contrib/cmake_unofficial/CMakeLists.txt
+++ b/contrib/cmake_unofficial/CMakeLists.txt
@@ -215,4 +215,6 @@ else()
set(INCLUDEDIR "${CMAKE_INSTALL_FULL_INCLUDEDIR}")
endif()
+# for liblz4.pc substitution
+set(VERSION ${LZ4_VERSION_STRING})
configure_file(${LZ4_LIB_SOURCE_DIR}/liblz4.pc.in liblz4.pc @ONLY)