summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2019-01-23 10:19:26 +0100
committerRomain Forlot <romain.forlot@iot.bzh>2019-03-22 10:58:09 +0100
commit1eb7fc7fa029f52ded8d8210638b25322aaf6816 (patch)
tree51756061a9fc926eb1e21dc927dff0c7636cc0ba
parentf5bb1d7d963450a77587df9cb7cd25fad7617097 (diff)
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 <romain.forlot@iot.bzh>
-rw-r--r--afb-helpers-qt.pc.in2
-rw-r--r--afb-helpers.pc.in2
2 files changed, 2 insertions, 2 deletions
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}