From 3d546c70367c774e8065ae6956acca08ea959cdb Mon Sep 17 00:00:00 2001 From: Max Bruckner Date: Sat, 5 Nov 2016 15:50:01 +0700 Subject: [PATCH] pkg-config: Update libcjson.pc.in --- CMakeLists.txt | 1 + libcjson.pc.in | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f0ddd3..9e931b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,7 @@ add_compile_options(-ansi -pedantic -Wall -Wextra -Werror -Wstrict-prototypes -W #variables for pkg-config set(prefix ${CMAKE_INSTALL_PREFIX}) set(libdir "${CMAKE_INSTALL_PREFIX}/lib") +set(version ${CJSON_VERSION}) #cJSON set(PROJ_CJSON cJSON) diff --git a/libcjson.pc.in b/libcjson.pc.in index e04d5ee..aac3262 100644 --- a/libcjson.pc.in +++ b/libcjson.pc.in @@ -1,9 +1,10 @@ prefix=@prefix@ libdir=@libdir@ includedir=${prefix}/include/cJSON +version=@version@ -Name: libcJSON -Version: 1.0 +Name: libcjson +Version: ${version} Description: Ultralightweight JSON parser in ANSI C -Libs: -L${libdir} -lcJSON +Libs: -L${libdir} -lcjson Cflags: -I${includedir}