-
Notifications
You must be signed in to change notification settings - Fork 21
pchheader
mba105 edited this page Sep 21, 2014
·
4 revisions
Home > [Scripting Reference](Scripting Reference) > pchheader
The pchheader function specifies the #include form of the precompiled header file name.
#!lua
pchheader ("name.h")
See Using Precompiled Headers for more information.
If no header file is set, the toolset default settings will be used.
name.h is the name of the precompiled header, *as it is specified in the #include statements of the project source code. If your source code includes the header like this:
#!c
#include "myproject.h"
...specify the header in your script like this, even if the file itself is located on a different path relative to the project (and presumably found at compile time via the include file search paths):
#!lua
pchheader "myproject.h"
Project configurations.
Premake 4.0 and up.