plugin-api: Fix the prefix for pkg_check_modules of CMakeLists.txt 95/289995/3
authorSangYoun Kwak <sy.kwak@samsung.com>
Thu, 16 Mar 2023 11:45:18 +0000 (20:45 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Fri, 17 Mar 2023 07:31:58 +0000 (07:31 +0000)
commit5c5c7f315c8d675eb98abc53dd9c6170c30cfaba
tree7b08a0959c24771435e477981e5658a2a25c0bdf
parent35ae84e72bf86544d55841a3fda9ed5e8707e0e2
plugin-api: Fix the prefix for pkg_check_modules of CMakeLists.txt

The command pkg_check_modules in CMakeLists.txt checks modules and sets
variables about these modules.
The names of these variables have their prefix designated by the command
pkg_check_modules like below:
pkg_check_modules(<prefix> REQUIRED <modules>)

Previously, in plugin-api-common, prefix was "pkgs", which is not a
unique name.
In plugin-api-resourced, prefix was ${PROJECT_NAME} but when calling
variables, "pkgs" was used for prefix, which is not correct usage.
This fault was fixed by replacing their prefix as their ${PROJECT_NAME}.

Change-Id: Ide1db4b707f2c6e9f632c0cc36ab4ec654383887
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
src/plugin-api/common/CMakeLists.txt
src/plugin-api/resourced/CMakeLists.txt