From ff5d361b17e71fd1547c2c5e5bf5748d7f65ec28 Mon Sep 17 00:00:00 2001
From: Ilya Zhuravlev <whatever@xyz.is>
Date: Wed, 28 Jul 2021 20:05:32 -0400
Subject: [PATCH] common_features: alert user if QMK_SETTINGS is enabled but
 MOUSEKEY disabled

---
 common_features.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/common_features.mk b/common_features.mk
index 5ec5c2e96c..0da9458dfb 100644
--- a/common_features.mk
+++ b/common_features.mk
@@ -490,6 +490,9 @@ ifeq ($(strip $(DYNAMIC_KEYMAP_ENABLE)), yes)
 endif
 
 ifeq ($(strip $(QMK_SETTINGS)), yes)
+    ifeq ($(strip $(MOUSEKEY_ENABLE)), no)
+        $(error QMK_SETTINGS requires MOUSEKEY_ENABLE, either disable QMK_SETTINGS explicitly or enable MOUSEKEY_ENABLE)
+    endif
     AUTO_SHIFT_ENABLE := yes
     SRC += $(QUANTUM_DIR)/qmk_settings.c
     OPT_DEFS += -DQMK_SETTINGS -DAUTO_SHIFT_NO_SETUP -DTAPPING_TERM_PER_KEY -DPERMISSIVE_HOLD_PER_KEY -DIGNORE_MOD_TAP_INTERRUPT_PER_KEY -DTAPPING_FORCE_HOLD_PER_KEY -DRETRO_TAPPING_PER_KEY