Browse Source

pmci: mctp: Fix No SOURCES CMake warning

The commit 1e0af58b51 ("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 <haiyuewa@163.com>
pull/80139/head
Haiyue Wang 3 months ago committed by Benjamin Cabé
parent
commit
9c9c080b68
  1. 2
      subsys/pmci/CMakeLists.txt

2
subsys/pmci/CMakeLists.txt

@ -1,3 +1,3 @@ @@ -1,3 +1,3 @@
# SPDX-License-Identifier: Apache-2.0
add_subdirectory(mctp)
add_subdirectory_ifdef(CONFIG_MCTP mctp)

Loading…
Cancel
Save