diff options
author | Philippe Canal <pcanal@fnal.gov> | 2021-06-17 22:59:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-06-18 13:41:08 (GMT) |
commit | c8eb35773806174480070c17785e6c8dd5dc1e4c (patch) | |
tree | cbf073981721470c19d0546ee1d326f9a9da62ac /Modules/TestForSTDNamespace.cmake | |
parent | d64d2d12c39f54f953fa946cf01fedf33ee2db70 (diff) | |
download | CMake-c8eb35773806174480070c17785e6c8dd5dc1e4c.zip CMake-c8eb35773806174480070c17785e6c8dd5dc1e4c.tar.gz CMake-c8eb35773806174480070c17785e6c8dd5dc1e4c.tar.bz2 |
CompilerId: Tolerate variables named for languages
If a project or user sets a variable or cache entry named `C`, `CXX`,
`CUDA`, `Fortran`, `CSharp`, or `ISPC`, we were previously comparing
each enabled language name 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 in commit bd16a985fc (CompilerId/Features:
Tolerate variables named for languages, 2021-04-28) in more places. In
particular, ensure that we consider the proper list of compiler ids.
Issue: #22125
Diffstat (limited to 'Modules/TestForSTDNamespace.cmake')
0 files changed, 0 insertions, 0 deletions