summaryrefslogtreecommitdiffstats
path: root/Tests/Simple
diff options
context:
space:
mode:
authorPhilippe Canal <pcanal@fnal.gov>2021-06-17 22:59:45 (GMT)
committerBrad King <brad.king@kitware.com>2021-06-18 13:41:08 (GMT)
commitc8eb35773806174480070c17785e6c8dd5dc1e4c (patch)
treecbf073981721470c19d0546ee1d326f9a9da62ac /Tests/Simple
parentd64d2d12c39f54f953fa946cf01fedf33ee2db70 (diff)
downloadCMake-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 'Tests/Simple')
0 files changed, 0 insertions, 0 deletions