1302 - Missing Precompiled Header option '%s' in '%s'.

Description
A Precompiled Header declaration was missing a required option. Compilation will not work correctly.
Example
Config:
.Compiler = 'cl.exe' ObjectList( 'test' ) { .PCHInputFile = 'PrecompiledHeader.cpp' .PCHOutputFile = 'tmp/PrecompiledHeader.pch' .PCHOptions = '%1 /Fo"%3" /Yc"PrecompiledHeader.h" /Fp"%2" /c' .CompilerOutputPath = 'tmp/' .CompilerOptions = '%1 /Fo%2' // Missing options to use the PCH with MSVC compiler }
Output:
c:\test\fbuild.bff(3):(1) FASTBuild Error #1302 - Library() - Missing Precompiled Header option '/Yu' in 'CompilerOptions'. ObjectList( 'test' ) ^ \--here
Fix:
.Compiler = 'cl.exe' ObjectList( 'test' ) { .PCHInputFile = 'PrecompiledHeader.cpp' .PCHOutputFile = 'tmp/PrecompiledHeader.pch' .PCHOptions = '%1 /Fo"%3" /Yc"PrecompiledHeader.h" /Fp"%2" /c' .CompilerOutputPath = 'tmp/' .CompilerOptions = '%1 /Fo%2 /Yu"PrecompiledHeader.h" /Fp"$PCHOutputFile$"' }