Skip to content

Commit

Permalink
Merge pull request #1599 from robotology/traversaro-patch-8
Browse files Browse the repository at this point in the history
Do not use find_package(glfw3) to detect if irrlicht+sdl is available
  • Loading branch information
traversaro authored Feb 14, 2024
2 parents 93504fb + 5d614b3 commit b49ea68
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 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 b49ea68

Please sign in to comment.