It fails when adding capi-network-wifi-mesh devel package to SDK root
strap because of wrong path in package config file. This patch changes
wrong parameters in CMakefiles.txt and capi-network-wifi-mesh.spec
files.
Change-Id: Iad4fd05ea52607906bb3abd9a7a079e4331bc3ce
Signed-off-by: saerome.kim <saerome.kim@samsung.com>
SET(INC_DIR include)
INCLUDE_DIRECTORIES(${INC_DIR})
-SET(dependents "dlog capi-base-common capi-system-info glib-2.0 gio-2.0")
-SET(pc_dependents "capi-base-common")
+SET(dependents "dlog capi-system-info glib-2.0 gio-2.0")
+SET(pc_dependents "")
INCLUDE(FindPkgConfig)
pkg_check_modules(${fw_name} REQUIRED ${dependents} ${APPFW_REQUIRED_PKGS})
# Package Information for pkg-config
-prefix=@CMAKE_INSTALL_PREFIX@
+prefix=@PREFIX@
exec_prefix=${prefix}/bin
libdir=@LIB_INSTALL_DIR@
-includedir=${prefix}/include/network
+includedir=@INCLUDE_INSTALL_DIR@/network
Name: @PC_NAME@
Description: @PACKAGE_DESCRIPTION@
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0)
-BuildRequires: pkgconfig(capi-base-common)
BuildRequires: pkgconfig(capi-system-info)
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB_INSTALL_DIR=%{_libdir} \
-DBIN_INSTALL_DIR=%{_bindir} \
+ -DINCLUDE_INSTALL_DIR=%{_includedir} \
-DLIB_PATH=%{_lib} \
-DFULLVER=%{version} \
-DMAJORVER=${MAJORVER}