SKIP_PRECOMPILE_HEADERS
Added in version 4.4.
The file set sources will be skipped by PRECOMPILE_HEADERS feature.
This property helps with build problems that one would run into when using the PRECOMPILE_HEADERS feature.
One example would be the usage of Objective-C (*.m) files, and Objective-C++ (*.mm) files, which lead to compilation failure because they are treated (in case of Ninja / Makefile generator) as C, and CXX respectively. The precompile headers are not compatible between languages.
See Also
-
SKIP_PRECOMPILE_HEADERSsource file property
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/prop_fs/SKIP_PRECOMPILE_HEADERS.html