mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-30 11:08:51 -06:00
Previously, when a mixed language target ends up with `Swift` as the `LINKER_LANGUAGE`, the PCH file was not set for the target at all. Fixes: #21224
10 lines
139 B
C
10 lines
139 B
C
#ifndef PCH_VALUE
|
|
# error "PCH_VALUE not defined"
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
const int value = PCH_VALUE;
|
|
return value == 42 ? 0 : 1;
|
|
}
|