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:
AndreaBodini 2024-10-25 23:25:55 +02:00 committed by GitHub
parent 8c1e441936
commit 3defb84ea5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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()