mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
cmake: use module name if no main is available
This commit is contained in:
parent
be4819e8b1
commit
b24eded7a0
@ -305,7 +305,7 @@ function(px4_add_module)
|
||||
COMPILE_DEFINITIONS PX4_MAIN=${MAIN}_app_main)
|
||||
add_definitions(-DMODULE_NAME="${MAIN}")
|
||||
else()
|
||||
add_definitions(-DMODULE_NAME="unknown")
|
||||
add_definitions(-DMODULE_NAME="${MODULE}")
|
||||
endif()
|
||||
|
||||
if(INCLUDES)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user