From 9c9c080b68f7365898cec73302a2a0ad423f109f Mon Sep 17 00:00:00 2001 From: Haiyue Wang Date: Wed, 23 Apr 2025 00:43:57 +0800 Subject: [PATCH] pmci: mctp: Fix No SOURCES CMake warning The commit 1e0af58b519b ("pmci: Move MCTP into the PMCI subsys") changes 'mctp' directory adding to unconditionally, which will cause: CMake Warning at ./zephyrproject/zephyr/CMakeLists.txt:1022 (message): No SOURCES given to Zephyr library: subsys__pmci__mctp Excluding target from build. Signed-off-by: Haiyue Wang --- subsys/pmci/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subsys/pmci/CMakeLists.txt b/subsys/pmci/CMakeLists.txt index 620501b12e2..931aeaada5b 100644 --- a/subsys/pmci/CMakeLists.txt +++ b/subsys/pmci/CMakeLists.txt @@ -1,3 +1,3 @@ # SPDX-License-Identifier: Apache-2.0 -add_subdirectory(mctp) +add_subdirectory_ifdef(CONFIG_MCTP mctp)