We have a standard parallel project folder structure for all our projects similar to:
- project-source-code/ (For .h/.hpp/.cpp/.cu files)
- project-solution-files/ (For .sln/.vcxproj/.vcxproj.filters files)
- project-build-data/ (For .obj/.pdb/.ilk/.lib files)
This usually works fine but recently I have noticed that projects involving CUDA are depositing vc140.pdb files in the folder (2) which is NOT OK as it should be in (3). And it has resulted in some people accidentally checking into source control large pdb files by accident etc.
All the standard non-cuda VS2017 settings all point to the right locations and so far I cannot find a specific CUDA build setting to prevent the problem. Is there anyway to fix this?