Skip to content

try_compile: Do not use CMAKE_BUILD_TYPE or CMAKE_CONFIGURATION_TYPES env vars

Brad King requested to merge brad.king/cmake:env-init-configs into master

Since !6291 (merged) the environment variables are supposed to provide defaults for settings the user otherwise can control via cache entries. However, they accidentally affect try_compile projects too, which are supposed to be programmatically controlled.

Fixes: #22935 (closed)
Backport: release

Merge request reports