From b3462f470c4ab8fbe8e7782b63025affeac1781c Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 29 Mar 2024 12:44:25 +0100 Subject: [PATCH] Removed DEPENDS flag when creating the device and avoid checking if it is enabled 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 --- src/devices/keyboard-joypad/CMakeLists.txt | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/devices/keyboard-joypad/CMakeLists.txt b/src/devices/keyboard-joypad/CMakeLists.txt index afeb353..4c22ddb 100644 --- a/src/devices/keyboard-joypad/CMakeLists.txt +++ b/src/devices/keyboard-joypad/CMakeLists.txt @@ -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 )