mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
Fix logic from commit 9df1f33c9a (VisualStudio: move PCH rules to
projects when possible., 2020-10-15, v3.20.0-rc1~638^2) to explicitly
disable PCH on sources that should not use the target-wide PCH rules.
Fixes: #21827
10 lines
154 B
C++
10 lines
154 B
C++
#include "cxx_pch.h"
|
|
#ifndef CXX_PCH
|
|
# error "CXX PCH not included in CXX source."
|
|
#endif
|
|
extern "C" int no_pch(void);
|
|
int main()
|
|
{
|
|
return no_pch();
|
|
}
|