forked from Archive/PX4-Autopilot
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…
Reference in New Issue