Skip to content

Commit 90f2a33

Browse files
xuxin930xiaoxiang781216
authored andcommitted
cmake(bugfix):fix ymodem cmake typo
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
1 parent c403d6c commit 90f2a33

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

system/ymodem/CMakeLists.txt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
# ##############################################################################
2020

2121
if(CONFIG_SYSTEM_YMODEM)
22-
set(CSRCS ymodem.c)
23-
22+
target_sources(apps PRIVATE ymodem.c)
2423
nuttx_add_application(
2524
MODULE
2625
${CONFIG_SYSTEM_YMODEM}
@@ -31,8 +30,7 @@ if(CONFIG_SYSTEM_YMODEM)
3130
PRIORITY
3231
${CONFIG_SYSTEM_YMODEM_PRIORITY}
3332
SRCS
34-
sb_main.c
35-
${CSRCS})
33+
sb_main.c)
3634

3735
nuttx_add_application(
3836
MODULE
@@ -44,6 +42,6 @@ if(CONFIG_SYSTEM_YMODEM)
4442
PRIORITY
4543
${CONFIG_SYSTEM_YMODEM_PRIORITY}
4644
SRCS
47-
rb_main.c
48-
${CSRCS})
45+
rb_main.c)
46+
4947
endif()

0 commit comments

Comments
 (0)