diff options
author | Sangjung Woo <sangjung.woo@samsung.com> | 2016-10-07 21:09:47 +0900 |
---|---|---|
committer | Sangjung Woo <sangjung.woo@samsung.com> | 2016-10-07 21:09:47 +0900 |
commit | 0d3dfce45dd5520ce33b95535ee40eeecd525b38 (patch) | |
tree | 847e1b49be72729be94cde28894e4239076a783a | |
parent | e7fd05f050a7c1b96b9d873dc824076a8b881c5e (diff) | |
download | automotive-message-broker-0d3dfce45dd5520ce33b95535ee40eeecd525b38.tar.gz |
cmake: fix the error in pkgconfig file
Generated pkgconfig files(i.e. *.pc) have the wrong path as below.
Because of this reason, include files are not found when building AMB
plugin module.
---------------------------------------------
$ cat /usr/local/lib/pkgconfig/amb-plugins-common.pc
prefix=/usr/local
exec_prefix=${prefix}
libdir=lib
includedir=include/amb
---------------------------------------------
This patch fixes this problem by adding prefix macro in front of libdir
and includedir.
Signed-off-by: Sangjung Woo <sangjung.woo@samsung.com>
-rw-r--r-- | lib/automotive-message-broker.pc.in | 4 | ||||
-rw-r--r-- | plugins/common/amb-plugins-common.pc.in | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/automotive-message-broker.pc.in b/lib/automotive-message-broker.pc.in index 2602b31b..770043f7 100644 --- a/lib/automotive-message-broker.pc.in +++ b/lib/automotive-message-broker.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -libdir=@LIB_INSTALL_DIR@ -includedir=@INCLUDE_INSTALL_DIR@/amb +libdir=${prefix}/@LIB_INSTALL_DIR@ +includedir=${prefix}/@INCLUDE_INSTALL_DIR@/amb Name: automotive-message-broker Description: Message Broker for vehicle data diff --git a/plugins/common/amb-plugins-common.pc.in b/plugins/common/amb-plugins-common.pc.in index 8871c5ed..6fd6df2c 100644 --- a/plugins/common/amb-plugins-common.pc.in +++ b/plugins/common/amb-plugins-common.pc.in @@ -1,7 +1,7 @@ prefix=@CMAKE_INSTALL_PREFIX@ exec_prefix=${prefix} -libdir=@LIB_INSTALL_DIR@ -includedir=@INCLUDE_INSTALL_DIR@/amb +libdir=${prefix}/@LIB_INSTALL_DIR@ +includedir=${prefix}/@INCLUDE_INSTALL_DIR@/amb Name: amb-plugins-common Description: |