cotire
cotire copied to clipboard
MSVC: Broken single file build with a cleaned solution
516d7847 (ref: TrinityCore/TrinityCore#21104)
Description:
Building a single .cpp file in Visual Studio 2017 after a Clean Solution results in a build error
1>------ Build started: Project: game, Configuration: Debug x64 ------ 1>CreatureAI.cpp 1>c1xx : fatal error C1083: Cannot open compiler intermediate file: 'D:\wow\TrinityCore\win\src\server\game\Debug\cotire\game_CXX_prefix.pch': No such file or directory 1>Done building project "game.vcxproj" -- FAILED. ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Steps to reproduce the problem:
- Clean Solution in VS 2017
- Open any .cpp file contained in a cotirized project
- Choose Build > Compile or press Ctrl + F7
It seems like the single source files don't have the PCH project set as dependency.