Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions modules/FindOrBuildRBDL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ function(FindOrBuildRBDL MATH_BACKEND)
find_package(RBDLCasadi QUIET
PATHS ${CUSTOM_RBDL_PATH} ${INSTALL_DEPENDENCIES_PREFIX} ${CMAKE_INSTALL_PREFIX}
)
# Sometimes it finds one include folder short, so check if "rbdl-casadi" subdirectory exists
if(EXISTS "${RBDLCasadi_INCLUDE_DIR}/rbdl-casadi")
# If it exists, override the include dir to point to it
set(RBDLCasadi_INCLUDE_DIR "${RBDLCasadi_INCLUDE_DIR}/rbdl-casadi")
endif()
message(${RBDLCasadi_INCLUDE_DIR})
set(CUSTOM_RBDL_PATH ${CUSTOM_RBDL_PATH_COPY})
endif()
endif()
Expand Down
Loading