From: José Bollo Date: Tue, 24 May 2016 14:01:47 +0000 (+0200) Subject: don't export PLUGIN_INSTALL_DIR anywhere X-Git-Tag: blowfish_2.0.1~80 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=8fd6083ae84d3da225596287f5c12f87b5fad7eb;p=src%2Fapp-framework-binder.git don't export PLUGIN_INSTALL_DIR anywhere Change-Id: I32689b3de32f5c85b461edcb63ef4d0117ff9ecb Signed-off-by: José Bollo --- diff --git a/CMakeLists.txt b/CMakeLists.txt index fcd376c8..d3b7a32d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -63,8 +63,6 @@ SET(link_libraries SET(plugin_install_dir ${CMAKE_INSTALL_FULL_LIBDIR}/afb) -ADD_DEFINITIONS(-DPLUGIN_INSTALL_DIR="${plugin_install_dir}") - ADD_SUBDIRECTORY(src) ADD_SUBDIRECTORY(include) ADD_SUBDIRECTORY(plugins) diff --git a/afb-daemon.pc.in b/afb-daemon.pc.in index 196324ab..23075eb9 100644 --- a/afb-daemon.pc.in +++ b/afb-daemon.pc.in @@ -26,5 +26,5 @@ Version: @PROJECT_VERSION@ URL: @PROJECT_URL@ Requires: json-c -Cflags: -DPLUGIN_INSTALL_DIR=\"${plugin_install_dir}\" -I${includedir} +Cflags: -I${includedir} diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 94ed5a56..3b3c6fd4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,6 +1,8 @@ INCLUDE(FindPkgConfig) +ADD_DEFINITIONS(-DPLUGIN_INSTALL_DIR="${plugin_install_dir}") + CHECK_INCLUDE_FILES(magic.h HAVE_MAGIC_H) CHECK_LIBRARY_EXISTS(magic magic_load "" HAVE_LIBMAGIC_SO) IF(HAVE_MAGIC_H)