From 4802b6d3af42918aec842ce4117a667523b1ab25 Mon Sep 17 00:00:00 2001 From: Damien George Date: Sun, 19 Jun 2022 22:44:34 +1000 Subject: [PATCH] extmod/extmod.cmake: Only include modbtree in build if it's enabled. Following how it's done in extmod.mk. Signed-off-by: Damien George --- extmod/extmod.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/extmod/extmod.cmake b/extmod/extmod.cmake index 966511fac5..8fe83a0ada 100644 --- a/extmod/extmod.cmake +++ b/extmod/extmod.cmake @@ -14,7 +14,6 @@ set(MICROPY_SOURCE_EXTMOD ${MICROPY_EXTMOD_DIR}/machine_signal.c ${MICROPY_EXTMOD_DIR}/machine_spi.c ${MICROPY_EXTMOD_DIR}/modbluetooth.c - ${MICROPY_EXTMOD_DIR}/modbtree.c ${MICROPY_EXTMOD_DIR}/modframebuf.c ${MICROPY_EXTMOD_DIR}/modlwip.c ${MICROPY_EXTMOD_DIR}/modnetwork.c @@ -97,6 +96,10 @@ if(MICROPY_PY_BTREE) __DBINTERFACE_PRIVATE=1 "virt_fd_t=void*" ) + + list(APPEND MICROPY_SOURCE_EXTMOD + ${MICROPY_EXTMOD_DIR}/modbtree.c + ) endif() # Library for mbedtls