forked from Imagelibrary/seL4
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 <curtis.millar@data61.csiro.au>
This commit is contained in:
committed by
Curtis Millar
parent
a81a5618f2
commit
6b12a7d16c
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user