From 2ae3cf397da35e015a9ee8ec8ad868d0e05f4c03 Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Wed, 27 Oct 2021 16:45:20 +0200 Subject: [PATCH] CMake: Automatically set UGFX_ROOT --- cmake/Findugfx.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/Findugfx.cmake b/cmake/Findugfx.cmake index f2bc7c6f..3500c9a0 100644 --- a/cmake/Findugfx.cmake +++ b/cmake/Findugfx.cmake @@ -1,3 +1,6 @@ +# Define UGFX_ROOT +set(UGFX_ROOT ${CMAKE_CURRENT_LIST_DIR}/..) + # Ensure that CHIBIOS_ROOT is set if(NOT UGFX_ROOT) message(FATAL_ERROR "No UGFX_ROOT specified")