VisualStudio project with multiple sourcefiles of the same name?

前端 未结 3 967
执念已碎
执念已碎 2020-12-09 06:08

i have a largish C++ project, with source-files organised in multiple folders (on the filesystem).

in two of these folders, i have files with the same name. e.g.

3条回答
  •  隐瞒了意图╮
    2020-12-09 06:27

    Use

    $(IntDir)%(Directory)
    

    as "Object File Path".

    %(Directory) contains the absolute path of the file without the volume and without the filename itself. This solution should work at least in VS 2019 and can be applied to a project directly.

提交回复
热议问题