mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-07 02:58:53 +08:00
cmake: use module name if no main is available
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user