Back to Cmake

SKIP_PRECOMPILE_HEADERS

Help/prop_fs/SKIP_PRECOMPILE_HEADERS.rst

4.4.0637 B
Original Source

SKIP_PRECOMPILE_HEADERS

.. versionadded:: 4.4

The file set sources will be skipped by :prop_tgt:PRECOMPILE_HEADERS feature.

This property helps with build problems that one would run into when using the :prop_tgt: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 ^^^^^^^^

  • :prop_sf:SKIP_PRECOMPILE_HEADERS source file property