mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 11:26:12 +08:00
cmake: fix CMake build break
Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -17,6 +17,13 @@
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
|
||||
if(CONFIG_MOTOR_FOC)
|
||||
target_sources(drivers PRIVATE foc_dev.c)
|
||||
set(SRCS foc_dev.c)
|
||||
if(CONFIG_MOTOR_FOC_DUMMY)
|
||||
list(APPEND SRCS foc_dummy.c)
|
||||
endif()
|
||||
|
||||
target_include_directories(drivers PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
target_sources(drivers PRIVATE ${SRCS})
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user