From: Mikko Johannes Koivunalho Date: Sat, 14 Sep 2019 16:18:45 +0000 (+0200) Subject: Add variable VERSION to pkgconfig/check.pc configuration X-Git-Tag: 0.13.0~5^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e3b3f58620d93925192132379ef4a734cc8ac9a;p=check Add variable VERSION to pkgconfig/check.pc configuration File check.pc.in is shared with Autotools and CMake build. File uses variable 'VERSION'. Signed-off-by: Mikko Johannes Koivunalho --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 6e1453c..dd4e925 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -398,6 +398,7 @@ set(prefix "${CMAKE_INSTALL_PREFIX}") set(exec_prefix "\${prefix}") set(libdir "\${exec_prefix}/lib") set(includedir "\${prefix}/include") +set(VERSION "${PROJECT_VERSION}") if (HAVE_SUBUNIT) set(LIBSUBUNIT_PC "libsubunit") @@ -431,6 +432,7 @@ unset(LIBS) unset(PTHREAD_LIBS) unset(GCOV_LIBS) unset(LIBSUBUNIT_PC) +unset(VERSION) unset(includedir) unset(libdir) unset(exec_prefix)