-
Notifications
You must be signed in to change notification settings - Fork 20
pchsource
mba105 edited this page Sep 21, 2014
·
3 revisions
Home > [Scripting Reference](Scripting Reference) > 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.
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.)
Project configurations.
Premake 4.0 and up.