Skip to content

Commit

Permalink
Removed DEPENDS flag when creating the device and avoid checking if i…
Browse files Browse the repository at this point in the history
…t is enabled (#2)

Since I am using REQUIRED when checking the dependecies, it is useless

Using DEFAULT=ON for the yarp plugin

Avoiding to check if the device is enabled
  • Loading branch information
S-Dafarra authored Mar 29, 2024
1 parent f70f5ea commit 233ef37
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/devices/keyboard-joypad/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,25 +4,15 @@
# 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 "glfw3_FOUND;GLEW_FOUND;OpenGL_FOUND")

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

yarp_prepare_plugin(keyboardJoypad
CATEGORY device
TYPE yarp::dev::KeyboardJoypad
INCLUDE KeyboardJoypad.h
DEPENDS ${DEPENDS_STRING}
DEFAULT ON
INTERNAL
QUIET
)

if(NOT ENABLE_keyboard-joypad)
return()
endif()

set(yarp_keyboard-joypad_SRCS
KeyboardJoypad.cpp
)
Expand Down

0 comments on commit 233ef37

Please sign in to comment.