zephyr/cmake/modules
Torsten Rasmussen c32e4a71bf cmake: support grouping of compile options for compiler testing
Fixes: #47588

Kitware decided to fail compiler tests of single options if the
compiler reported only a warning and not an error:
github.com/Kitware/CMake/commit/f745e0497ee71d35fd1b3524b1636a72da76c266
which affects CMake 3.23.0 and 3.23.1

This change was later reverted in CMake >=3.23.2 and >=3.24.0
github.com/Kitware/CMake/commit/4941887d7defecb3016d2bd94d3a45754251ca56

Although the immediate issue is related to CMake, and has been fixed
reverted in later releases, then it still makes sense to be able to
group compiler options together that generally are depending on each
other to function correctly.

This commit introduces the possibility to group compiler options which
must be tested together.
It uses same approach as
> add_compile_options("SHELL:<option1> <option2> ...")

Usage:
> check_set_compiler_property(PROPERTY <property>
>                             "SHELL:<option1> <option2> ..."
> )

Will test the option together.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2022-09-14 09:37:59 +00:00
..
arch.cmake cmake: kconfig: introduce dedicated unit testing board 2022-08-18 14:29:14 +02:00
basic_settings.cmake cmake: extend zephyr_get() to handle build configurations from sysbuild 2022-09-02 15:16:50 +02:00
boards.cmake cmake: update common Zephyr build settings to use zephyr_get() 2022-09-02 15:16:50 +02:00
ccache.cmake
configuration_files.cmake cmake: extend zephyr_get() to handle build configurations from sysbuild 2022-09-02 15:16:50 +02:00
doc.cmake cmake: doc: created a doc.cmake CMake module in Zephyr CMake modules dir 2022-02-22 10:02:39 -08:00
dts.cmake cmake: rework of host tools and generic toolchain handling 2022-09-01 15:59:43 +02:00
extensions.cmake cmake: support grouping of compile options for compiler testing 2022-09-14 09:37:59 +00:00
FindDeprecated.cmake cmake: improve warning deprecation message 2022-09-07 15:38:36 +02:00
FindDtc.cmake cmake: cleanup search for devicetree compiler, dtc 2022-09-01 15:59:43 +02:00
FindHostTools.cmake cmake: locate Zephyr SDK before locating other host tools. 2022-09-02 19:41:15 +09:00
FindTargetTools.cmake cmake: rework of target toolchain handling 2022-09-01 15:59:43 +02:00
FindZephyr-sdk.cmake cmake: use zephyr_get in toolchains to ensure identical behavior. 2022-09-02 15:16:50 +02:00
kconfig.cmake cmake: extend zephyr_get() to handle build configurations from sysbuild 2022-09-02 15:16:50 +02:00
kernel.cmake cmake: rework of target toolchain handling 2022-09-01 15:59:43 +02:00
python.cmake cmake: Bump the minimum required Python version to 3.8 2022-08-24 18:35:57 +02:00
root.cmake cmake: kconfig: introduce dedicated unit testing board 2022-08-18 14:29:14 +02:00
shields.cmake devicetree: drop support for dts_fixup.h files 2022-08-11 12:17:02 +02:00
soc.cmake
unittest.cmake cmake: create test_interface interface library 2022-09-09 10:06:19 +02:00
user_cache.cmake scripts: move dir_is_writeable.py to scripts/build 2022-07-12 10:03:45 +02:00
version.cmake
west.cmake
zephyr_default.cmake cmake: extend zephyr_get() to handle build configurations from sysbuild 2022-09-02 15:16:50 +02:00
zephyr_module.cmake cmake: update common Zephyr build settings to use zephyr_get() 2022-09-02 15:16:50 +02:00