From fdf7deb40510d2d0a207742ea14c96bde5df5021 Mon Sep 17 00:00:00 2001 From: Stefano Date: Fri, 29 Mar 2024 12:48:59 +0100 Subject: [PATCH] Added CMake error when the device compilation is not enabled --- src/devices/keyboard-joypad/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/devices/keyboard-joypad/CMakeLists.txt b/src/devices/keyboard-joypad/CMakeLists.txt index ba0c7ec..92a395b 100644 --- a/src/devices/keyboard-joypad/CMakeLists.txt +++ b/src/devices/keyboard-joypad/CMakeLists.txt @@ -13,7 +13,7 @@ yarp_prepare_plugin(keyboardJoypad ) if(NOT ENABLE_keyboard-joypad) - return() + message(FATAL "yarp_keyboard-joypad build requested but ENABLE_keyboard-joypad is set to OFF") endif() set(yarp_keyboard-joypad_SRCS