mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
cmake:fix drivers build block during cmake reforming
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
@@ -17,4 +17,10 @@
|
||||
# the License.
|
||||
#
|
||||
# ##############################################################################
|
||||
nuttx_add_subdirectory()
|
||||
if(CONFIG_MOTOR_FOC)
|
||||
nuttx_add_subdirectory()
|
||||
endif()
|
||||
|
||||
if(CONFIG_MOTOR_UPPER)
|
||||
target_sources(drivers PRIVATE motor.c)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user