Skip to content

Commit 9c9c080

Browse files
haiyuewakartben
authored andcommitted
pmci: mctp: Fix No SOURCES CMake warning
The commit 1e0af58 ("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 <[email protected]>
1 parent e93fdca commit 9c9c080

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

subsys/pmci/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: Apache-2.0
22

3-
add_subdirectory(mctp)
3+
add_subdirectory_ifdef(CONFIG_MCTP mctp)

0 commit comments

Comments
 (0)