From 6ce8d5cc7616334b90aaa9679b33321b95195d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Desbiens?= Date: Wed, 9 Sep 2026 14:27:02 -0400 Subject: [PATCH] Marked every published ThreadX include directory as SYSTEM so applications no longer get warnings from ThreadX headers (#713) * Marked every published ThreadX include directory as SYSTEM so applications no longer get warnings from ThreadX headers Commit 8c3c08f added the SYSTEM keyword to the target_include_directories call in common/CMakeLists.txt, but the same call in every port, in the SMP common directory's consumers, in the POSIX and FreeRTOS compatibility layers, and for the generated tx_user.h directory was left unchanged. A consumer building with a strict warning set therefore still saw diagnostics coming from tx_port.h and from the compatibility layer headers, which is exactly what the original change set out to avoid. Added the SYSTEM keyword to all of those calls so CMake emits -isystem rather than -I for every directory holding a ThreadX public header. The ARMv7-M, ARMv8-M, ARMv7-A and ARMv8-A architecture sources under ports_arch were updated alongside the ports they generate, keeping the two in step. Directories that are PRIVATE to an example or test build were left as they are, since nothing is published from them. Fixes #290 Assisted-by: Copilot (Opus 5) * Stopped apt-get update being a gate it was never meant to be apt-get update fails if any configured repository serves a bad index, including ones this project never reads. The GitHub runner image carries Google's and Microsoft's apt repositories, and a Hash Sum mismatch from Google's, their CDN caught mid-publish with the index and the Release file eight hours apart, failed all three attempts and turned a run red over a browser nobody was installing. Made a failed update warn and carry on, leaving apt-get install as the gate. Nothing is weakened by that: the install still exits on a package it cannot find, so an unreachable archive still stops the script, one step later and naming the package it could not get, which is a better diagnostic than a hash mismatch in a repository nobody asked for. Disabling third-party sources before updating would keep the update strict, but this script also runs on a contributor's own machine, and rewriting someone's apt configuration to suit CI would be worse than tolerating a stale index for an archive we do not read. Assisted-by: Copilot (Opus 5) --- CMakeLists.txt | 2 ++ ports/arm11/gnu/CMakeLists.txt | 1 + ports/arm9/gnu/CMakeLists.txt | 1 + ports/cortex_a12/gnu/CMakeLists.txt | 1 + ports/cortex_a15/gnu/CMakeLists.txt | 1 + ports/cortex_a17/gnu/CMakeLists.txt | 1 + ports/cortex_a34/gnu/CMakeLists.txt | 1 + ports/cortex_a35/gnu/CMakeLists.txt | 1 + ports/cortex_a5/gnu/CMakeLists.txt | 1 + ports/cortex_a53/gnu/CMakeLists.txt | 1 + ports/cortex_a55/gnu/CMakeLists.txt | 1 + ports/cortex_a57/gnu/CMakeLists.txt | 1 + ports/cortex_a65/gnu/CMakeLists.txt | 1 + ports/cortex_a65ae/gnu/CMakeLists.txt | 1 + ports/cortex_a7/gnu/CMakeLists.txt | 1 + ports/cortex_a72/gnu/CMakeLists.txt | 1 + ports/cortex_a73/gnu/CMakeLists.txt | 1 + ports/cortex_a75/gnu/CMakeLists.txt | 1 + ports/cortex_a76/gnu/CMakeLists.txt | 1 + ports/cortex_a76ae/gnu/CMakeLists.txt | 1 + ports/cortex_a77/gnu/CMakeLists.txt | 1 + ports/cortex_a8/gnu/CMakeLists.txt | 1 + ports/cortex_a9/gnu/CMakeLists.txt | 1 + ports/cortex_m0/gnu/CMakeLists.txt | 1 + ports/cortex_m0/iar/CMakeLists.txt | 1 + ports/cortex_m23/gnu/CMakeLists.txt | 1 + ports/cortex_m3/gnu/CMakeLists.txt | 1 + ports/cortex_m3/iar/CMakeLists.txt | 1 + ports/cortex_m33/ac6/CMakeLists.txt | 4 ++- ports/cortex_m33/gnu/CMakeLists.txt | 1 + ports/cortex_m4/gnu/CMakeLists.txt | 1 + ports/cortex_m4/iar/CMakeLists.txt | 1 + ports/cortex_m52/ac6/CMakeLists.txt | 4 ++- ports/cortex_m52/gnu/CMakeLists.txt | 1 + ports/cortex_m55/ac6/CMakeLists.txt | 4 ++- ports/cortex_m55/gnu/CMakeLists.txt | 1 + ports/cortex_m7/gnu/CMakeLists.txt | 4 ++- ports/cortex_m7/iar/CMakeLists.txt | 1 + ports/cortex_m85/ac6/CMakeLists.txt | 4 ++- ports/cortex_m85/gnu/CMakeLists.txt | 1 + ports/cortex_r4/gnu/CMakeLists.txt | 1 + ports/cortex_r5/gnu/CMakeLists.txt | 1 + ports/cortex_r52/gnu/CMakeLists.txt | 1 + ports/linux/gnu/CMakeLists.txt | 1 + ports/rxv1/ccrx/CMakeLists.txt | 1 + ports/rxv1/gnu/CMakeLists.txt | 1 + ports/rxv2/ccrx/CMakeLists.txt | 1 + ports/rxv2/gnu/CMakeLists.txt | 1 + ports/rxv3/ccrx/CMakeLists.txt | 1 + ports/rxv3/gnu/CMakeLists.txt | 1 + ports/win32/vs_2019/CMakeLists.txt | 1 + ports/win64/vs_2022/CMakeLists.txt | 1 + ports/xtensa/xcc/CMakeLists.txt | 1 + .../ARMv7-A/threadx/ports/gnu/CMakeLists.txt | 1 + ports_arch/ARMv7-M/threadx/gnu/CMakeLists.txt | 4 ++- .../ARMv8-A/threadx/ports/gnu/CMakeLists.txt | 1 + .../threadx_smp/ports/gnu/CMakeLists.txt | 1 + ports_arch/ARMv8-M/threadx/ac6/CMakeLists.txt | 4 ++- ports_arch/ARMv8-M/threadx/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a34_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a35_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a53_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a55_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a57_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a5_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a5x_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a65_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a65ae_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a72_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a73_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a75_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a76_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a76ae_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a77_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a78_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a7_smp/gnu/CMakeLists.txt | 1 + ports_smp/cortex_a9_smp/gnu/CMakeLists.txt | 1 + ports_smp/linux/gnu/CMakeLists.txt | 1 + .../mips32_interaptiv_smp/gnu/CMakeLists.txt | 1 + ports_smp/win64/vs_2022/CMakeLists.txt | 1 + scripts/install.sh | 29 +++++++++++++++++-- test/smp/cmake/threadx_smp/CMakeLists.txt | 1 + .../threadx_smp/common_smp/CMakeLists.txt | 1 + .../ports_smp/linux/gnu/CMakeLists.txt | 1 + .../ports_smp/win64/vs_2022/CMakeLists.txt | 1 + .../posix/CMakeLists.txt | 1 + 86 files changed, 127 insertions(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9fbe6982..940717df 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -73,6 +73,7 @@ add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/${TX_COMMON_DIR}) # Define the FreeRTOS adaptation layer add_library(freertos-threadx EXCLUDE_FROM_ALL) target_include_directories(freertos-threadx + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/utility/rtos_compatibility_layers/FreeRTOS ) @@ -109,6 +110,7 @@ else() endif() configure_file(${TX_USER_FILE} ${CUSTOM_INC_DIR}/tx_user.h COPYONLY) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CUSTOM_INC_DIR} ) diff --git a/ports/arm11/gnu/CMakeLists.txt b/ports/arm11/gnu/CMakeLists.txt index 208d5175..83d7e0fa 100644 --- a/ports/arm11/gnu/CMakeLists.txt +++ b/ports/arm11/gnu/CMakeLists.txt @@ -27,6 +27,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/arm9/gnu/CMakeLists.txt b/ports/arm9/gnu/CMakeLists.txt index 669cedc2..6d071937 100644 --- a/ports/arm9/gnu/CMakeLists.txt +++ b/ports/arm9/gnu/CMakeLists.txt @@ -27,6 +27,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a12/gnu/CMakeLists.txt b/ports/cortex_a12/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a12/gnu/CMakeLists.txt +++ b/ports/cortex_a12/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a15/gnu/CMakeLists.txt b/ports/cortex_a15/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a15/gnu/CMakeLists.txt +++ b/ports/cortex_a15/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a17/gnu/CMakeLists.txt b/ports/cortex_a17/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a17/gnu/CMakeLists.txt +++ b/ports/cortex_a17/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a34/gnu/CMakeLists.txt b/ports/cortex_a34/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a34/gnu/CMakeLists.txt +++ b/ports/cortex_a34/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a35/gnu/CMakeLists.txt b/ports/cortex_a35/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a35/gnu/CMakeLists.txt +++ b/ports/cortex_a35/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a5/gnu/CMakeLists.txt b/ports/cortex_a5/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a5/gnu/CMakeLists.txt +++ b/ports/cortex_a5/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a53/gnu/CMakeLists.txt b/ports/cortex_a53/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a53/gnu/CMakeLists.txt +++ b/ports/cortex_a53/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a55/gnu/CMakeLists.txt b/ports/cortex_a55/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a55/gnu/CMakeLists.txt +++ b/ports/cortex_a55/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a57/gnu/CMakeLists.txt b/ports/cortex_a57/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a57/gnu/CMakeLists.txt +++ b/ports/cortex_a57/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a65/gnu/CMakeLists.txt b/ports/cortex_a65/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a65/gnu/CMakeLists.txt +++ b/ports/cortex_a65/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a65ae/gnu/CMakeLists.txt b/ports/cortex_a65ae/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a65ae/gnu/CMakeLists.txt +++ b/ports/cortex_a65ae/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a7/gnu/CMakeLists.txt b/ports/cortex_a7/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a7/gnu/CMakeLists.txt +++ b/ports/cortex_a7/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a72/gnu/CMakeLists.txt b/ports/cortex_a72/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a72/gnu/CMakeLists.txt +++ b/ports/cortex_a72/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a73/gnu/CMakeLists.txt b/ports/cortex_a73/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a73/gnu/CMakeLists.txt +++ b/ports/cortex_a73/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a75/gnu/CMakeLists.txt b/ports/cortex_a75/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a75/gnu/CMakeLists.txt +++ b/ports/cortex_a75/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a76/gnu/CMakeLists.txt b/ports/cortex_a76/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a76/gnu/CMakeLists.txt +++ b/ports/cortex_a76/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a76ae/gnu/CMakeLists.txt b/ports/cortex_a76ae/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a76ae/gnu/CMakeLists.txt +++ b/ports/cortex_a76ae/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a77/gnu/CMakeLists.txt b/ports/cortex_a77/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports/cortex_a77/gnu/CMakeLists.txt +++ b/ports/cortex_a77/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a8/gnu/CMakeLists.txt b/ports/cortex_a8/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a8/gnu/CMakeLists.txt +++ b/ports/cortex_a8/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_a9/gnu/CMakeLists.txt b/ports/cortex_a9/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports/cortex_a9/gnu/CMakeLists.txt +++ b/ports/cortex_a9/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m0/gnu/CMakeLists.txt b/ports/cortex_m0/gnu/CMakeLists.txt index 0e3cc8ec..3c318e65 100755 --- a/ports/cortex_m0/gnu/CMakeLists.txt +++ b/ports/cortex_m0/gnu/CMakeLists.txt @@ -16,6 +16,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m0/iar/CMakeLists.txt b/ports/cortex_m0/iar/CMakeLists.txt index 57be3aeb..e9583502 100644 --- a/ports/cortex_m0/iar/CMakeLists.txt +++ b/ports/cortex_m0/iar/CMakeLists.txt @@ -16,6 +16,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m23/gnu/CMakeLists.txt b/ports/cortex_m23/gnu/CMakeLists.txt index 93f52d68..e7c71e07 100644 --- a/ports/cortex_m23/gnu/CMakeLists.txt +++ b/ports/cortex_m23/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m3/gnu/CMakeLists.txt b/ports/cortex_m3/gnu/CMakeLists.txt index 71e2d4f2..1507e736 100755 --- a/ports/cortex_m3/gnu/CMakeLists.txt +++ b/ports/cortex_m3/gnu/CMakeLists.txt @@ -13,6 +13,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m3/iar/CMakeLists.txt b/ports/cortex_m3/iar/CMakeLists.txt index 57be3aeb..e9583502 100644 --- a/ports/cortex_m3/iar/CMakeLists.txt +++ b/ports/cortex_m3/iar/CMakeLists.txt @@ -16,6 +16,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m33/ac6/CMakeLists.txt b/ports/cortex_m33/ac6/CMakeLists.txt index 5ad3b8e7..81b479e0 100644 --- a/ports/cortex_m33/ac6/CMakeLists.txt +++ b/ports/cortex_m33/ac6/CMakeLists.txt @@ -16,6 +16,8 @@ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.S ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC inc ) diff --git a/ports/cortex_m33/gnu/CMakeLists.txt b/ports/cortex_m33/gnu/CMakeLists.txt index 763a2696..a8e45b82 100644 --- a/ports/cortex_m33/gnu/CMakeLists.txt +++ b/ports/cortex_m33/gnu/CMakeLists.txt @@ -19,6 +19,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m4/gnu/CMakeLists.txt b/ports/cortex_m4/gnu/CMakeLists.txt index 71e2d4f2..1507e736 100755 --- a/ports/cortex_m4/gnu/CMakeLists.txt +++ b/ports/cortex_m4/gnu/CMakeLists.txt @@ -13,6 +13,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m4/iar/CMakeLists.txt b/ports/cortex_m4/iar/CMakeLists.txt index 57be3aeb..e9583502 100644 --- a/ports/cortex_m4/iar/CMakeLists.txt +++ b/ports/cortex_m4/iar/CMakeLists.txt @@ -16,6 +16,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m52/ac6/CMakeLists.txt b/ports/cortex_m52/ac6/CMakeLists.txt index 5ad3b8e7..81b479e0 100644 --- a/ports/cortex_m52/ac6/CMakeLists.txt +++ b/ports/cortex_m52/ac6/CMakeLists.txt @@ -16,6 +16,8 @@ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.S ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC inc ) diff --git a/ports/cortex_m52/gnu/CMakeLists.txt b/ports/cortex_m52/gnu/CMakeLists.txt index 763a2696..a8e45b82 100644 --- a/ports/cortex_m52/gnu/CMakeLists.txt +++ b/ports/cortex_m52/gnu/CMakeLists.txt @@ -19,6 +19,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m55/ac6/CMakeLists.txt b/ports/cortex_m55/ac6/CMakeLists.txt index 5ad3b8e7..81b479e0 100644 --- a/ports/cortex_m55/ac6/CMakeLists.txt +++ b/ports/cortex_m55/ac6/CMakeLists.txt @@ -16,6 +16,8 @@ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.S ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC inc ) diff --git a/ports/cortex_m55/gnu/CMakeLists.txt b/ports/cortex_m55/gnu/CMakeLists.txt index 763a2696..a8e45b82 100644 --- a/ports/cortex_m55/gnu/CMakeLists.txt +++ b/ports/cortex_m55/gnu/CMakeLists.txt @@ -19,6 +19,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m7/gnu/CMakeLists.txt b/ports/cortex_m7/gnu/CMakeLists.txt index 6a8d5852..7285f9d4 100755 --- a/ports/cortex_m7/gnu/CMakeLists.txt +++ b/ports/cortex_m7/gnu/CMakeLists.txt @@ -11,6 +11,8 @@ target_sources(${PROJECT_NAME} PRIVATE # {{END_TARGET_SOURCES}} ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m7/iar/CMakeLists.txt b/ports/cortex_m7/iar/CMakeLists.txt index 57be3aeb..e9583502 100644 --- a/ports/cortex_m7/iar/CMakeLists.txt +++ b/ports/cortex_m7/iar/CMakeLists.txt @@ -16,6 +16,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_m85/ac6/CMakeLists.txt b/ports/cortex_m85/ac6/CMakeLists.txt index 5ad3b8e7..81b479e0 100644 --- a/ports/cortex_m85/ac6/CMakeLists.txt +++ b/ports/cortex_m85/ac6/CMakeLists.txt @@ -16,6 +16,8 @@ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.S ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC inc ) diff --git a/ports/cortex_m85/gnu/CMakeLists.txt b/ports/cortex_m85/gnu/CMakeLists.txt index 763a2696..a8e45b82 100644 --- a/ports/cortex_m85/gnu/CMakeLists.txt +++ b/ports/cortex_m85/gnu/CMakeLists.txt @@ -19,6 +19,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_r4/gnu/CMakeLists.txt b/ports/cortex_r4/gnu/CMakeLists.txt index a5d37879..b40b5b99 100644 --- a/ports/cortex_r4/gnu/CMakeLists.txt +++ b/ports/cortex_r4/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_r5/gnu/CMakeLists.txt b/ports/cortex_r5/gnu/CMakeLists.txt index bb1864ef..46d1dadb 100644 --- a/ports/cortex_r5/gnu/CMakeLists.txt +++ b/ports/cortex_r5/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/cortex_r52/gnu/CMakeLists.txt b/ports/cortex_r52/gnu/CMakeLists.txt index 26ca3028..957e2cbe 100644 --- a/ports/cortex_r52/gnu/CMakeLists.txt +++ b/ports/cortex_r52/gnu/CMakeLists.txt @@ -26,6 +26,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/linux/gnu/CMakeLists.txt b/ports/linux/gnu/CMakeLists.txt index 073f4b7e..17138044 100644 --- a/ports/linux/gnu/CMakeLists.txt +++ b/ports/linux/gnu/CMakeLists.txt @@ -15,6 +15,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/rxv1/ccrx/CMakeLists.txt b/ports/rxv1/ccrx/CMakeLists.txt index f2269c51..4118eb37 100644 --- a/ports/rxv1/ccrx/CMakeLists.txt +++ b/ports/rxv1/ccrx/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/rxv1/gnu/CMakeLists.txt b/ports/rxv1/gnu/CMakeLists.txt index 9357c697..1735b774 100644 --- a/ports/rxv1/gnu/CMakeLists.txt +++ b/ports/rxv1/gnu/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/rxv2/ccrx/CMakeLists.txt b/ports/rxv2/ccrx/CMakeLists.txt index f2269c51..4118eb37 100644 --- a/ports/rxv2/ccrx/CMakeLists.txt +++ b/ports/rxv2/ccrx/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/rxv2/gnu/CMakeLists.txt b/ports/rxv2/gnu/CMakeLists.txt index 9357c697..1735b774 100644 --- a/ports/rxv2/gnu/CMakeLists.txt +++ b/ports/rxv2/gnu/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/rxv3/ccrx/CMakeLists.txt b/ports/rxv3/ccrx/CMakeLists.txt index f2269c51..4118eb37 100644 --- a/ports/rxv3/ccrx/CMakeLists.txt +++ b/ports/rxv3/ccrx/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/rxv3/gnu/CMakeLists.txt b/ports/rxv3/gnu/CMakeLists.txt index 9357c697..1735b774 100644 --- a/ports/rxv3/gnu/CMakeLists.txt +++ b/ports/rxv3/gnu/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/win32/vs_2019/CMakeLists.txt b/ports/win32/vs_2019/CMakeLists.txt index 5a766f06..d2210a8f 100644 --- a/ports/win32/vs_2019/CMakeLists.txt +++ b/ports/win32/vs_2019/CMakeLists.txt @@ -15,6 +15,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/win64/vs_2022/CMakeLists.txt b/ports/win64/vs_2022/CMakeLists.txt index 328b89d1..073f0f99 100644 --- a/ports/win64/vs_2022/CMakeLists.txt +++ b/ports/win64/vs_2022/CMakeLists.txt @@ -14,6 +14,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports/xtensa/xcc/CMakeLists.txt b/ports/xtensa/xcc/CMakeLists.txt index 31768e58..dbc3eeb6 100644 --- a/ports/xtensa/xcc/CMakeLists.txt +++ b/ports/xtensa/xcc/CMakeLists.txt @@ -26,6 +26,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_arch/ARMv7-A/threadx/ports/gnu/CMakeLists.txt b/ports_arch/ARMv7-A/threadx/ports/gnu/CMakeLists.txt index 531df96e..d03910d1 100644 --- a/ports_arch/ARMv7-A/threadx/ports/gnu/CMakeLists.txt +++ b/ports_arch/ARMv7-A/threadx/ports/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_arch/ARMv7-M/threadx/gnu/CMakeLists.txt b/ports_arch/ARMv7-M/threadx/gnu/CMakeLists.txt index ab9464d2..4abc1c06 100644 --- a/ports_arch/ARMv7-M/threadx/gnu/CMakeLists.txt +++ b/ports_arch/ARMv7-M/threadx/gnu/CMakeLists.txt @@ -13,6 +13,8 @@ target_sources(${PROJECT_NAME} PRIVATE # {{END_TARGET_SOURCES}} ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_arch/ARMv8-A/threadx/ports/gnu/CMakeLists.txt b/ports_arch/ARMv8-A/threadx/ports/gnu/CMakeLists.txt index 25e5b6b8..12a58cbe 100644 --- a/ports_arch/ARMv8-A/threadx/ports/gnu/CMakeLists.txt +++ b/ports_arch/ARMv8-A/threadx/ports/gnu/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_arch/ARMv8-A/threadx_smp/ports/gnu/CMakeLists.txt b/ports_arch/ARMv8-A/threadx_smp/ports/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_arch/ARMv8-A/threadx_smp/ports/gnu/CMakeLists.txt +++ b/ports_arch/ARMv8-A/threadx_smp/ports/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_arch/ARMv8-M/threadx/ac6/CMakeLists.txt b/ports_arch/ARMv8-M/threadx/ac6/CMakeLists.txt index 5ad3b8e7..81b479e0 100644 --- a/ports_arch/ARMv8-M/threadx/ac6/CMakeLists.txt +++ b/ports_arch/ARMv8-M/threadx/ac6/CMakeLists.txt @@ -16,6 +16,8 @@ target_sources(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src/tx_timer_interrupt.S ) -target_include_directories(${PROJECT_NAME} PUBLIC +target_include_directories(${PROJECT_NAME} + SYSTEM + PUBLIC inc ) diff --git a/ports_arch/ARMv8-M/threadx/gnu/CMakeLists.txt b/ports_arch/ARMv8-M/threadx/gnu/CMakeLists.txt index 763a2696..a8e45b82 100644 --- a/ports_arch/ARMv8-M/threadx/gnu/CMakeLists.txt +++ b/ports_arch/ARMv8-M/threadx/gnu/CMakeLists.txt @@ -19,6 +19,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a34_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a34_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a34_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a34_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a35_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a35_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a35_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a35_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a53_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a53_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a53_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a53_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a55_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a55_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a55_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a55_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a57_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a57_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a57_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a57_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a5_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a5_smp/gnu/CMakeLists.txt index f0806658..d3b42149 100644 --- a/ports_smp/cortex_a5_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a5_smp/gnu/CMakeLists.txt @@ -32,6 +32,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a5x_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a5x_smp/gnu/CMakeLists.txt index 8e8f8cd0..dfbd61b3 100644 --- a/ports_smp/cortex_a5x_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a5x_smp/gnu/CMakeLists.txt @@ -32,6 +32,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a65_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a65_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a65_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a65_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a65ae_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a65ae_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a65ae_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a65ae_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a72_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a72_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a72_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a72_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a73_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a73_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a73_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a73_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a75_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a75_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a75_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a75_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a76_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a76_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a76_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a76_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a76ae_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a76ae_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a76ae_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a76ae_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a77_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a77_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a77_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a77_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a78_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a78_smp/gnu/CMakeLists.txt index a1030280..b4758a85 100644 --- a/ports_smp/cortex_a78_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a78_smp/gnu/CMakeLists.txt @@ -33,6 +33,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a7_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a7_smp/gnu/CMakeLists.txt index 7e271946..ef6be36c 100644 --- a/ports_smp/cortex_a7_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a7_smp/gnu/CMakeLists.txt @@ -31,6 +31,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/cortex_a9_smp/gnu/CMakeLists.txt b/ports_smp/cortex_a9_smp/gnu/CMakeLists.txt index 4b13e1a1..dd2c1a41 100644 --- a/ports_smp/cortex_a9_smp/gnu/CMakeLists.txt +++ b/ports_smp/cortex_a9_smp/gnu/CMakeLists.txt @@ -26,6 +26,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/linux/gnu/CMakeLists.txt b/ports_smp/linux/gnu/CMakeLists.txt index 67209ee7..23d4a1a5 100644 --- a/ports_smp/linux/gnu/CMakeLists.txt +++ b/ports_smp/linux/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/mips32_interaptiv_smp/gnu/CMakeLists.txt b/ports_smp/mips32_interaptiv_smp/gnu/CMakeLists.txt index 1c0ad10d..6f813331 100644 --- a/ports_smp/mips32_interaptiv_smp/gnu/CMakeLists.txt +++ b/ports_smp/mips32_interaptiv_smp/gnu/CMakeLists.txt @@ -28,6 +28,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/ports_smp/win64/vs_2022/CMakeLists.txt b/ports_smp/win64/vs_2022/CMakeLists.txt index 982f9684..447a0026 100644 --- a/ports_smp/win64/vs_2022/CMakeLists.txt +++ b/ports_smp/win64/vs_2022/CMakeLists.txt @@ -23,6 +23,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR}/inc ) diff --git a/scripts/install.sh b/scripts/install.sh index c142370d..84279c4e 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -35,7 +35,8 @@ rm -rf /opt/hostedtoolcache # # The Acquire options are kept anyway, since they make a slow mirror give up # sooner. The loop covers a mirror that is down rather than merely slow. The -# explicit exits stop a failed fetch from being carried forward into a build. +# explicit exits stop a failed fetch from being carried forward into a build, +# with one deliberate exception noted at the update below. APT_OPTIONS=(-o Acquire::Retries=3 -o Acquire::http::Timeout=20 -o Acquire::https::Timeout=20) @@ -63,7 +64,31 @@ retry() { return 1 } -retry sudo "${TIMEOUT[@]}" apt-get "${APT_OPTIONS[@]}" update || exit 1 +# THE UPDATE IS NOT THE GATE, AND IT MUST NOT BE. apt-get update fails if ANY +# configured repository serves a bad index, including ones this project does +# not use. On a GitHub runner the image carries Google's and Microsoft's +# repositories, and a Hash Sum mismatch from Google's -- their CDN caught +# mid-publish, index and Release file eight hours apart -- failed this script +# three attempts running and turned a build red over a browser nobody was +# installing. +# +# The alternative of disabling third-party sources before updating is wrong +# here: this script also runs on a contributor's own machine, where silently +# rewriting their apt configuration would be a far worse thing to do than +# tolerating a stale index. +# +# So a failed update WARNS and the install below is the gate. Nothing is +# weakened by that: apt-get install still fails hard on a package it cannot +# find, so an archive that is genuinely unreachable still stops the script -- +# one step later, and saying which package it could not get. +if ! retry sudo "${TIMEOUT[@]}" apt-get "${APT_OPTIONS[@]}" update; then + echo "" + echo "install.sh: apt-get update did not fully succeed." + echo "install.sh: continuing, because a repository this project does not" + echo "install.sh: use can fail an update. The install below is the real" + echo "install.sh: gate and fails if any package needed is unavailable." + echo "" +fi retry sudo "${TIMEOUT[@]}" apt-get "${APT_OPTIONS[@]}" install -y \ gcc-multilib \ git \ diff --git a/test/smp/cmake/threadx_smp/CMakeLists.txt b/test/smp/cmake/threadx_smp/CMakeLists.txt index 568fece4..a2e17636 100644 --- a/test/smp/cmake/threadx_smp/CMakeLists.txt +++ b/test/smp/cmake/threadx_smp/CMakeLists.txt @@ -45,6 +45,7 @@ else() endif() configure_file(${TX_USER_FILE} ${CUSTOM_INC_DIR}/tx_user.h COPYONLY) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CUSTOM_INC_DIR} ) diff --git a/test/smp/cmake/threadx_smp/common_smp/CMakeLists.txt b/test/smp/cmake/threadx_smp/common_smp/CMakeLists.txt index 646b200b..770379af 100644 --- a/test/smp/cmake/threadx_smp/common_smp/CMakeLists.txt +++ b/test/smp/cmake/threadx_smp/common_smp/CMakeLists.txt @@ -214,6 +214,7 @@ target_sources(${PROJECT_NAME} # Add the Common/inc directory to the project include list target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CURRENT_DIR}/inc ) diff --git a/test/smp/cmake/threadx_smp/ports_smp/linux/gnu/CMakeLists.txt b/test/smp/cmake/threadx_smp/ports_smp/linux/gnu/CMakeLists.txt index 9c51522c..64d97255 100644 --- a/test/smp/cmake/threadx_smp/ports_smp/linux/gnu/CMakeLists.txt +++ b/test/smp/cmake/threadx_smp/ports_smp/linux/gnu/CMakeLists.txt @@ -25,6 +25,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CURRENT_DIR}/inc ) diff --git a/test/smp/cmake/threadx_smp/ports_smp/win64/vs_2022/CMakeLists.txt b/test/smp/cmake/threadx_smp/ports_smp/win64/vs_2022/CMakeLists.txt index 6b219bb2..8635647a 100644 --- a/test/smp/cmake/threadx_smp/ports_smp/win64/vs_2022/CMakeLists.txt +++ b/test/smp/cmake/threadx_smp/ports_smp/win64/vs_2022/CMakeLists.txt @@ -24,6 +24,7 @@ target_sources(${PROJECT_NAME} ) target_include_directories(${PROJECT_NAME} + SYSTEM PUBLIC ${CURRENT_DIR}/inc ) diff --git a/utility/rtos_compatibility_layers/posix/CMakeLists.txt b/utility/rtos_compatibility_layers/posix/CMakeLists.txt index 6ddcd6a8..8cf3ab9a 100644 --- a/utility/rtos_compatibility_layers/posix/CMakeLists.txt +++ b/utility/rtos_compatibility_layers/posix/CMakeLists.txt @@ -12,6 +12,7 @@ add_library(posix-threadx EXCLUDE_FROM_ALL) target_include_directories(posix-threadx + SYSTEM PUBLIC ${CMAKE_CURRENT_LIST_DIR} )