mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-27 17:10:43 -06:00
Since: * commite216b9bbd3(cmake: Allow CMAKE_BUILD_TYPE to be set by environment variable, 2021-06-29, v3.22.0-rc1~503^2~1) * commitef56eefc9b(cmake: Allow CMAKE_CONFIGURATION_TYPES to be set by environment variable, 2021-06-29, v3.22.0-rc1~503^2) 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
8 lines
92 B
C
8 lines
92 B
C
#ifdef TC_CONFIG_BAD
|
|
# error "Built in 'Bad' config"
|
|
#endif
|
|
int main(void)
|
|
{
|
|
return 0;
|
|
}
|