summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Collet <Cyan4973@users.noreply.github.com>2017-02-05 17:33:27 (GMT)
committerGitHub <noreply@github.com>2017-02-05 17:33:27 (GMT)
commit7ed257191b65d7185a5847a21d14aaa7948e2104 (patch)
tree68f572e064b762950dd2cd106125335ce76d1638
parent67abd75e65311d608abae30fa296cab8715b17f4 (diff)
parent96e150e7df2bd76e3507f64cea61e6d0f72c93ec (diff)
downloadlz4-7ed257191b65d7185a5847a21d14aaa7948e2104.zip
lz4-7ed257191b65d7185a5847a21d14aaa7948e2104.tar.gz
lz4-7ed257191b65d7185a5847a21d14aaa7948e2104.tar.bz2
Merge pull request #312 from mgorny/cmake-pc-version
[cmake] Fix substituting version in liblz4.pc
-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)