mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-23 06:36:45 +08:00
cmake add git submodule replace . in target name
This commit is contained in:
committed by
Lorenz Meier
parent
4f8f0d8645
commit
f1bd94e25b
@@ -73,6 +73,7 @@ function(px4_add_git_submodule)
|
||||
)
|
||||
|
||||
string(REPLACE "/" "_" NAME ${PATH})
|
||||
string(REPLACE "." "_" NAME ${NAME})
|
||||
|
||||
add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/git_init_${NAME}.stamp
|
||||
COMMAND bash ${PX4_SOURCE_DIR}/Tools/check_submodules.sh ${PATH}
|
||||
|
||||
Reference in New Issue
Block a user