Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSVC: Broken single file build with a cleaned solution #148

Open
Naios opened this issue Jan 25, 2018 · 0 comments
Open

MSVC: Broken single file build with a cleaned solution #148

Naios opened this issue Jan 25, 2018 · 0 comments

Comments

@Naios
Copy link

Naios commented Jan 25, 2018

516d784 (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:

  1. Clean Solution in VS 2017
  2. Open any .cpp file contained in a cotirized project
  3. Choose Build > Compile or press Ctrl + F7

It seems like the single source files don't have the PCH project set as dependency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant