Skip to content

CheckLanguage: Avoid CMP0126 warning

Brad King requested to merge brad.king/cmake:CheckLanguage-CMP0126 into master

The macro's implementation converts a normal variable into a cache variable intentionally, so both are set. Explicitly set CMP0126 to NEW to avoid a warning in trace mode. This won't affect the module behavior because the code path does not activate if a normal variable is already defined anyway.

Fixes: #22548 (closed)
Backport: release

Merge request reports