From 225028caa02b1ae85e2794131637ed9bb761d45c Mon Sep 17 00:00:00 2001 From: Gaurav Aggarwal Date: Mon, 22 Aug 2022 06:52:20 +0000 Subject: [PATCH] Add FreeRTOS config directory to include dirs This allows the application write to set FREERTOS_CONFIG_FILE_DIRECTORY to whichever directory the FreeRTOSConfig.h file exists in. This was reported here - https://github.com/FreeRTOS/FreeRTOS-Kernel/issues/545 Signed-off-by: Gaurav Aggarwal --- portable/ThirdParty/GCC/RP2040/library.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/portable/ThirdParty/GCC/RP2040/library.cmake b/portable/ThirdParty/GCC/RP2040/library.cmake index e3e8b2186ad..902a21766ad 100644 --- a/portable/ThirdParty/GCC/RP2040/library.cmake +++ b/portable/ThirdParty/GCC/RP2040/library.cmake @@ -27,7 +27,8 @@ target_sources(FreeRTOS-Kernel INTERFACE ) target_include_directories(FreeRTOS-Kernel INTERFACE - ${CMAKE_CURRENT_LIST_DIR}/include) + ${CMAKE_CURRENT_LIST_DIR}/include + ${FREERTOS_CONFIG_FILE_DIRECTORY}) target_link_libraries(FreeRTOS-Kernel INTERFACE FreeRTOS-Kernel-Core