Contact | License

# 1300 - Precompiled Header use requires 'PCHInputFile', 'PCHOutputFile' and 'PCHOptions' parameters.

Description
An attempt was made to use Precompiled headers for a Library, but not all required properties were defined.
Example
Config:
ObjectList( 'compile' ) { .Compiler = 'cl.exe' .CompilerInputPath = 'Code/' .CompilerOutputPath = 'Tmp/' .CompilerOptions = '%1 %2' .PCHInputFile = 'PrecompiledHeader.cpp' }
Output:
c:\Test\fbuild.bff(1):(1) FASTBuild Error #1300 - ObjectList() - Precompiled Header use requires 'PCHInputFile', 'PCHOutputFile' and 'PCHOptions' parameters. ObjectList( 'compile' ) ^ \--here
Fix:
ObjectList( 'compile' ) { .Compiler = 'cl.exe' .CompilerInputPath = 'Code/' .CompilerOutputPath = 'tmp/' .CompilerOptions = '%1 %2' .PCHInputFile = 'PrecompiledHeader.cpp' // Add missing options .PCHOutputFile = 'out/PrecompiledHeader.pch' .PCHOptions = .CompilerOptions + ' /Yc"PrecompiledHeader.h" /Fp"$PCHOutputFile$"' }