Skip to content
mba105 edited this page Sep 21, 2014 · 3 revisions

Home > [Scripting Reference](Scripting Reference) > pchsource


pchsource

The pchsource function specifies the C/C++ source code file which controls the compilation of the header.

#!lua
pchsource ("sourcefile.cpp")

See Using Precompiled Headers for more information.

If no source file is set, the toolset default settings will be used.

Parameters

sourcefile.cpp is the name of the source code which triggers the compilation of the header. This file must contain the header file's #include statement as the first line of code; this is usually the only statement in the file.

(Can anyone find a good link to this in the MSDN docs? They just rearranged the site and I'm not finding anything useful right now.)

Applies To

Project configurations.

Availability

Premake 4.0 and up.

See Also

Clone this wiki locally