Skip to content

Commit

Permalink
Change IDYNTREE_USES_IRRLICHT heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
traversaro authored Feb 13, 2024
1 parent 627f1ad commit 5d614b3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions cmake/BuildiDynTree.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@ endif()
# Hack for disabling IDYNTREE_USES_IRRLICHT on vcpkg,
# remove once irrlicht+sdl is available on vcpkg,
# and https://github.com/robotology/robotology-superbuild-dependencies-vcpkg
# is modified to includ it
find_package(glfw3 NO_MODULE QUIET)
# is modified to include it
if(WIN32 AND NOT ROBOTOLOGY_CONFIGURING_UNDER_CONDA)
# We assume that the case Win32 and not conda is vcpkg, where we do not have irrlicht+sdl
set(IDYNTREE_USES_IRRLICHT OFF)
else()
set(IDYNTREE_USES_IRRLICHT ON)
endif()

ycm_ep_helper(iDynTree TYPE GIT
STYLE GITHUB
Expand All @@ -34,7 +39,7 @@ ycm_ep_helper(iDynTree TYPE GIT
FOLDER src
CMAKE_ARGS -DIDYNTREE_USES_IPOPT:BOOL=ON
-DIDYNTREE_USES_OSQPEIGEN:BOOL=ON
-DIDYNTREE_USES_IRRLICHT:BOOL=${glfw3_FOUND}
-DIDYNTREE_USES_IRRLICHT:BOOL=${IDYNTREE_USES_IRRLICHT}
-DIDYNTREE_USES_ASSIMP:BOOL=ON
-DCMAKE_DISABLE_FIND_PACKAGE_YARP:BOOL=ON
-DIDYNTREE_USES_YARP:BOOL=OFF
Expand Down

0 comments on commit 5d614b3

Please sign in to comment.