c32e4a71bf
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> |
||
---|---|---|
.. | ||
app | ||
bintools | ||
compiler | ||
emu | ||
flash | ||
ide | ||
linker | ||
linker_script | ||
makefile_exports | ||
modules | ||
reports | ||
toolchain | ||
usage | ||
util | ||
cfb.cmake | ||
extra_flags.cmake | ||
gcc-m-cpu.cmake | ||
gcc-m-fpu.cmake | ||
gen_version_h.cmake | ||
hex.cmake | ||
kobj.cmake | ||
mcuboot.cmake | ||
package_helper.cmake | ||
pristine.cmake | ||
target_toolchain_flags.cmake | ||
verify-toolchain.cmake |