From 6b12a7d16cab262ccdf070a09b7217d4de3c5a0c Mon Sep 17 00:00:00 2001 From: Curtis Millar Date: Tue, 20 Oct 2020 19:31:08 +1100 Subject: [PATCH] mcs: Check config TIMER_PRECISION variable name We need to check if the name of the variable has been defined, not if its value as a variable name has been defined, when determining whether to set a default value. Signed-off-by: Curtis Millar --- config.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.cmake b/config.cmake index 0c7cf3031..183e2597e 100644 --- a/config.cmake +++ b/config.cmake @@ -78,7 +78,7 @@ if(DEFINED CONFIGURE_MAX_IRQ) math(EXPR BITS "${BITS} + 1") endif() set(CONFIGURE_IRQ_SLOT_BITS "${BITS}" CACHE INTERNAL "") - if(NOT DEFINED ${CONFIGURE_TIMER_PRECISION}) + if(NOT DEFINED CONFIGURE_TIMER_PRECISION) set(CONFIGURE_TIMER_PRECISION "0") endif() configure_file(