Skip to content

Commit

Permalink
Merge pull request #54 from ami-iit/traversaro-patch-2
Browse files Browse the repository at this point in the history
Robustify cmake by not allowing to build the project without the device
  • Loading branch information
S-Dafarra authored Dec 5, 2024
2 parents d333bf4 + 9c72926 commit bbae2f8
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/devices/openxrheadset/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,17 @@
# This software may be modified and distributed under the terms of the
# BSD-2-Clause license. See the accompanying LICENSE file for details.

set(DEPENDS_STRING "OpenXR_FOUND;glfw3_FOUND;GLEW_FOUND;OpenGL_FOUND; Eigen3_FOUND")

if (NOT WIN32)
string(APPEND DEPENDS_STRING ";X11_FOUND")
endif()

yarp_prepare_plugin(openxrheadset
CATEGORY device
TYPE yarp::dev::OpenXrHeadset
INCLUDE OpenXrHeadset.h
DEPENDS ${DEPENDS_STRING}
INTERNAL
QUIET
)

if(NOT ENABLE_openxrheadset)
return()
message(FATAL_ERROR "It is not allowed to set ENABLE_openxrheadset to OFF in yarp-device-openxrheadset repo.")
endif()

set(yarp_openxrheadset_SRCS
Expand Down

0 comments on commit bbae2f8

Please sign in to comment.