chore(cmake): unset the cache of USE_FREERTOS (#68)
Add the unset before the option makes the USE_FREERTOS variable active with its current value
This commit is contained in:
parent
8c1e441936
commit
3defb84ea5
@ -4,7 +4,9 @@ project(lvgl C CXX)
|
|||||||
# Set the correct FreeRTOS port for your system (e.g., Posix for WSL)
|
# Set the correct FreeRTOS port for your system (e.g., Posix for WSL)
|
||||||
set(FREERTOS_PORT GCC_POSIX CACHE STRING "Port for FreeRTOS on Posix environment")
|
set(FREERTOS_PORT GCC_POSIX CACHE STRING "Port for FreeRTOS on Posix environment")
|
||||||
|
|
||||||
option(USE_FREERTOS "Enable FreeRTOS" OFF) # Turn this on to enable FreeRTOS
|
unset(USE_FREERTOS CACHE)
|
||||||
|
|
||||||
|
option(USE_FREERTOS "Enable FreeRTOS" OFF) # Turn this on to enable FreeRTOS
|
||||||
|
|
||||||
if(USE_FREERTOS)
|
if(USE_FREERTOS)
|
||||||
message(STATUS "FreeRTOS is enabled")
|
message(STATUS "FreeRTOS is enabled")
|
||||||
@ -175,4 +177,3 @@ else()
|
|||||||
message(STATUS "AddressSanitizer disabled")
|
message(STATUS "AddressSanitizer disabled")
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user