From 474538c047dfa551ff32c24e9ad30db608e38415 Mon Sep 17 00:00:00 2001 From: TaeminYeom Date: Thu, 19 Jan 2023 16:48:23 +0900 Subject: Add package libsyscommon in CMakeLists.txt Some modules use libsyscommon function but there is no package in CMakeLists.txt. When they are used in deviced, there is no error because deviced has a libsyscommon linking information. But running hal-test, there is an linking error. Change-Id: Ic630cfc9860c1bb5a34782f9055b430221a32171 Signed-off-by: TaeminYeom --- hw/battery/CMakeLists.txt | 2 +- hw/ir/CMakeLists.txt | 2 +- hw/led/CMakeLists.txt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hw/battery/CMakeLists.txt b/hw/battery/CMakeLists.txt index 56527e2..7fe2efa 100644 --- a/hw/battery/CMakeLists.txt +++ b/hw/battery/CMakeLists.txt @@ -4,7 +4,7 @@ PROJECT(hal-backend-device-battery C) SET(PREFIX ${CMAKE_INSTALL_PREFIX}) INCLUDE(FindPkgConfig) -pkg_check_modules(hal-backend-device-battery_pkgs REQUIRED hal-backend-device-common glib-2.0) +pkg_check_modules(hal-backend-device-battery_pkgs REQUIRED hal-backend-device-common glib-2.0 libsyscommon) FOREACH(flag ${hal-backend-device-battery_pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/hw/ir/CMakeLists.txt b/hw/ir/CMakeLists.txt index d7f70f5..d792dcf 100644 --- a/hw/ir/CMakeLists.txt +++ b/hw/ir/CMakeLists.txt @@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(hal-backend-device-ir C) INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED hal-backend-device-common) +pkg_check_modules(pkgs REQUIRED hal-backend-device-common libsyscommon) FOREACH(flag ${pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") diff --git a/hw/led/CMakeLists.txt b/hw/led/CMakeLists.txt index f3ab22d..56a2e3c 100644 --- a/hw/led/CMakeLists.txt +++ b/hw/led/CMakeLists.txt @@ -2,7 +2,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6) PROJECT(hal-backend-device-led C) INCLUDE(FindPkgConfig) -pkg_check_modules(pkgs REQUIRED hal-backend-device-common) +pkg_check_modules(pkgs REQUIRED hal-backend-device-common libsyscommon) FOREACH(flag ${pkgs_CFLAGS}) SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}") -- cgit v1.2.3