summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/ARMClang-C.cmake
diff options
context:
space:
mode:
authorJoakim Lönnberg <joakim.lonnberg@iar.com>2023-02-21 09:15:14 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-21 14:24:14 (GMT)
commit3b365c461fc2536f731435832f8a3f05b2c64854 (patch)
tree80513456a6e273c5e116bd56d8af2caf180238c5 /Modules/Compiler/ARMClang-C.cmake
parent053fa2fef85ec6d8b46837230cabf9612a667773 (diff)
downloadCMake-3b365c461fc2536f731435832f8a3f05b2c64854.zip
CMake-3b365c461fc2536f731435832f8a3f05b2c64854.tar.gz
CMake-3b365c461fc2536f731435832f8a3f05b2c64854.tar.bz2
IAR: Tolerate variables named for languages
If a project or user sets a variable or cache entry named `C` or `CXX`, we were previously comparing those language names to the value of that variable, rather than the name itself. Double-quote the string to take advantage of policy `CMP0054`, but also add "x" prefixes to support projects that do not set the policy. This extends a similar fix from commit c8eb357738 (CompilerId: Tolerate variables named for languages, 2021-06-17, v3.21.0-rc1~9^2).
Diffstat (limited to 'Modules/Compiler/ARMClang-C.cmake')
0 files changed, 0 insertions, 0 deletions