From f2c521edfa1898da7a5d5b7d515e1ece6d440ce3 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sun, 22 May 2022 00:27:47 -0600 Subject: [PATCH] add an error message when compiling with VIA_ENABLE=yes and VIAL_ENABLE=no --- quantum/via.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/quantum/via.c b/quantum/via.c index dd6347bf38..695eaa0808 100644 --- a/quantum/via.c +++ b/quantum/via.c @@ -22,6 +22,10 @@ # error "DYNAMIC_KEYMAP_ENABLE is not enabled" #endif +#ifndef VIAL_ENABLE +#error Compiling VIA keymaps is not supported with the vial-qmk repo, please use qmk_firmware instead, or set VIAL_ENABLE=yes +#endif + // If VIA_CUSTOM_LIGHTING_ENABLE is not defined, then VIA_QMK_BACKLIGHT_ENABLE is set // if BACKLIGHT_ENABLE is set, so handling of QMK Backlight values happens here by default. // if VIA_CUSTOM_LIGHTING_ENABLE is defined, then VIA_QMK_BACKLIGHT_ENABLE must be explicitly