From: Romain Forlot Date: Wed, 23 Jan 2019 09:19:26 +0000 (+0100) Subject: Set PROJECT_VERSION overwritable by cli X-Git-Tag: 7.99.1~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=1eb7fc7fa029f52ded8d8210638b25322aaf6816;p=src%2Flibafb-helpers.git Set PROJECT_VERSION overwritable by cli Use AGLVERSION variable that could be set by command-line to override the one set in the CMakeLists.txt file. Tiny fix on the Libs variable to use now ${libdir} instead of the CMake variable which isn't absolute Change-Id: Ic8137766ee3a0fb5b51cc49d2ea39d8d66e48b3f Signed-off-by: Romain Forlot --- diff --git a/afb-helpers-qt.pc.in b/afb-helpers-qt.pc.in index 450293e..772aeb6 100644 --- a/afb-helpers-qt.pc.in +++ b/afb-helpers-qt.pc.in @@ -25,5 +25,5 @@ Name: @TARGET_NAME@-qt Description: @PROJECT_DESCRIPTION@ and Qt Version: @PROJECT_VERSION@ URL: @PROJECT_URL@ -Libs: -L@CMAKE_INSTALL_LIBDIR@ -l@TARGET_NAME@-qt +Libs: -L${libdir} -l@TARGET_NAME@-qt Cflags: -I${includedir} diff --git a/afb-helpers.pc.in b/afb-helpers.pc.in index fe96b86..513e064 100644 --- a/afb-helpers.pc.in +++ b/afb-helpers.pc.in @@ -25,6 +25,6 @@ Name: @TARGET_NAME@ Description: @PROJECT_DESCRIPTION@ Version: @PROJECT_VERSION@ URL: @PROJECT_URL@ -Libs: -L@CMAKE_INSTALL_LIBDIR@ -l@TARGET_NAME@ +Libs: -L${libdir} -l@TARGET_NAME@ Cflags: -I${includedir}