Skip to content

Example demonstrating that non-unique filenames interfere with /MP in Visual Studio

Notifications You must be signed in to change notification settings

tamaskenezlego/nonuniquefilenamesbuild

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example demonstrating that Visual Studio reverts to single-processor compilation if there are multiple source files with the same filename.

CMakeLists.txt generates two, almost identical executable targets: nonunique and unique. They consists of many files in numbered directories. In case of nonunique all files are named source.cpp whereas for unique they're numbered: source-##.cpp.

The /MP compiler flag is enabled for both targets. The unique executable builds much faster since the compilation mode is multi-processor while for unique is single-processor.

image

About

Example demonstrating that non-unique filenames interfere with /MP in Visual Studio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published