mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Made generic external module support
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
parent
ef88706fa6
commit
b24d29e1eb
@ -334,7 +334,6 @@ foreach(module ${config_module_list})
|
||||
if(external_module)
|
||||
STRING(REGEX REPLACE "//" "/" EXT_MODULE ${module})
|
||||
STRING(REGEX REPLACE "/" "__" EXT_MODULE_PREFIX ${EXT_MODULE})
|
||||
get_filename_component(EXT_MODULE ${module} NAME)
|
||||
add_subdirectory(${module} ${CMAKE_BINARY_DIR}/${EXT_MODULE_PREFIX})
|
||||
else()
|
||||
add_subdirectory(src/${module})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user