mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-27 11:21:02 +08:00
Added Version definition to the pkg-config file
This commit is contained in:
parent
263a4706fa
commit
69c324ead5
@ -34,7 +34,7 @@ ENDFUNCTION(set_using_dynamic_name)
|
|||||||
# Extract major, minor, patch and qualifier from version text
|
# Extract major, minor, patch and qualifier from version text
|
||||||
# Parse a version string "X.Y.Z[-qualifier]" and outputs
|
# Parse a version string "X.Y.Z[-qualifier]" and outputs
|
||||||
# version parts in ${OUPUT_PREFIX}_MAJOR, _MINOR, _PATCH, _QUALIFIER.
|
# version parts in ${OUPUT_PREFIX}_MAJOR, _MINOR, _PATCH, _QUALIFIER.
|
||||||
# If parse succed then ${OUPUT_PREFIX}_FOUND is TRUE.
|
# If parse succeeds then ${OUPUT_PREFIX}_FOUND is TRUE.
|
||||||
MACRO(jsoncpp_parse_version VERSION_TEXT OUPUT_PREFIX)
|
MACRO(jsoncpp_parse_version VERSION_TEXT OUPUT_PREFIX)
|
||||||
SET(VERSION_REGEX "[0-9]+\\.[0-9]+\\.[0-9]+(-[a-zA-Z0-9_]+)?")
|
SET(VERSION_REGEX "[0-9]+\\.[0-9]+\\.[0-9]+(-[a-zA-Z0-9_]+)?")
|
||||||
IF( ${VERSION_TEXT} MATCHES ${VERSION_REGEX} )
|
IF( ${VERSION_TEXT} MATCHES ${VERSION_REGEX} )
|
||||||
|
@ -5,6 +5,7 @@ includedir=${prefix}/include
|
|||||||
|
|
||||||
Name: jsoncpp
|
Name: jsoncpp
|
||||||
Description: A C++ library for interacting with JSON
|
Description: A C++ library for interacting with JSON
|
||||||
|
Version: @JSONCPP_VERSION@
|
||||||
URL: https://github.com/open-source-parsers/jsoncpp
|
URL: https://github.com/open-source-parsers/jsoncpp
|
||||||
Libs: -L${libdir} -ljsoncpp
|
Libs: -L${libdir} -ljsoncpp
|
||||||
Cflags: -I${includedir}
|
Cflags: -I${includedir}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user