[helpers] Fix linking with creds-commons
authorZofia Abramowska <z.abramowska@samsung.com>
Thu, 15 Dec 2022 21:06:09 +0000 (22:06 +0100)
committerTomasz Swierczek <t.swierczek@samsung.com>
Tue, 27 Dec 2022 06:02:18 +0000 (07:02 +0100)
As TARGET_LIB_CREDS_COMMONS wasn't defined on level visible
for credential helpers build, credential libraries were not
properly linked.

Change-Id: I340cb0a312a3f98e9bf11957423a57fc40a35b65

CMakeLists.txt
packaging/libcynara-dbus.spec

index 03b5a5d1477a4da3e7dbd61eb26e0aeff245806e..78865ee96dc98baee5a8c015f38636c4c06ac3a3 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (c) 2014-2021 Samsung Electronics Co., Ltd All Rights Reserved
+# Copyright (c) 2014-2022 Samsung Electronics Co., Ltd All Rights Reserved
 #
 # This file is licensed under the terms of MIT License or the Apache License
 # Version 2.0 of your choice. See the LICENSE.MIT file for MIT license details.
@@ -208,6 +208,7 @@ IF (BUILD_COMMONS)
 ENDIF (BUILD_COMMONS)
 
 IF (BUILD_DBUS)
+    SET(TARGET_LIB_CREDS_COMMONS "cynara-creds-commons")
     SET(TARGET_LIB_CREDS_DBUS "cynara-creds-dbus")
     SET(TARGET_LIB_CREDS_GDBUS "cynara-creds-gdbus")
     IF (SYSTEMD_DEP_FOUND)
index 97ea3881ebf76a6cfa64603533053eb9dcca795c..8ba40d8f661a38b011145ecda63b36e196c06aae 100644 (file)
@@ -18,6 +18,7 @@ Requires(post):   smack
 Requires(postun): cynara-db-migration >= %{version}
 BuildRequires: cmake
 BuildRequires: zip
+BuildRequires: pkgconfig(cynara-creds-commons)
 BuildRequires: pkgconfig(libsmack)
 BuildRequires: pkgconfig(libsystemd)
 BuildRequires: pkgconfig(dbus-1)