From ac69aa858ae25027ba7decf5512deac7843ce368 Mon Sep 17 00:00:00 2001 From: Gaurav-Aggarwal-AWS <33462878+aggarg@users.noreply.github.com> Date: Mon, 22 Aug 2022 20:58:07 +0530 Subject: [PATCH] Add FreeRTOS config directory to include dirs (#548) 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