mirror of
https://github.com/moveit/moveit_task_constructor.git
synced 2025-11-04 14:49:57 +08:00
Fix: Fetch pybind11 submodule if not yet present
cmake's execute_process pipes COMMANDs together. Thus, `git submodule update` received the output of `git submodule init` as input and didn't do anything.
This commit is contained in:
parent
ca1c7c7e24
commit
a3cb8c6584
@ -21,9 +21,8 @@ set(PYBIND11_CMAKECONFIG_INSTALL_DIR ${CATKIN_PACKAGE_SHARE_DESTINATION}/cmake
|
||||
if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/pybind11/CMakeLists.txt")
|
||||
message("Missing content of submodule pybind11: Use 'git clone --recurse-submodule' in future.\n"
|
||||
"Checking out content automatically")
|
||||
execute_process(COMMAND git submodule init
|
||||
COMMAND git submodule update
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
execute_process(COMMAND git submodule init WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
execute_process(COMMAND git submodule update WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
endif()
|
||||
#catkin_lint: ignore_once subproject duplicate_cmd
|
||||
add_subdirectory(pybind11)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user