cmake/Tests/CSharpOnly
Brad King 3ddd7f3576 enable_language: Fix test for working compiler with CMP0126 NEW behavior
Update the logic that converts a `try_compile` result from a cache
entry to a normal variable to tolerate an existing normal variable
under CMP0126 NEW behavior.  Otherwise the `try_compile` result
is ignored because CMake uses the false value of the normal variable,
and CMake incorrectly reports that the compiler does not work.

This went unnoticed for some languages (e.g. C and CXX) because the
check for a working compiler is skipped if ABI detection works.
It does affect other languages (e.g. CSharp).

Fixes: #22423
2021-07-15 13:06:18 -04:00
..
nested
CMakeLists.txt enable_language: Fix test for working compiler with CMP0126 NEW behavior 2021-07-15 13:06:18 -04:00
config_specific_main_debug.cs VS: Add support for per-config C# sources 2021-05-03 10:49:47 -04:00
config_specific_main_no_exist.cs VS: Add support for per-config C# sources 2021-05-03 10:49:47 -04:00
config_specific_main_not_debug.cs VS: Add support for per-config C# sources 2021-05-03 10:49:47 -04:00
csharponly.cs
empty.cs
empty.txt
lib1.cs
lib2.cs