VS: Place intermediate files in the "ASM List Location" next to objects
The `AssemblerListingLocation` setting in VS project files is meant for intermediate files created during the build much like object files. When the VS 7 generator was first under development, commit49aebe6c99
(new arch, 2002-09-04) placed both object files and the ASM list location in the same directory. Later commitf9aef0e422
(Generator now creates a separate intermediate files directory for each target, 2005-07-27) moved the object files to a per-target directory but the ASM list location was not moved with them. Move it now. Fixes: #19480
This commit is contained in:
parent
79bcf4e165
commit
c1fc6c80c7
@ -703,8 +703,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(
|
||||
}
|
||||
Options targetOptions(this, t, table, gg->ExtraFlagTable);
|
||||
targetOptions.FixExceptionHandlingDefault();
|
||||
std::string asmLocation = configName + "/";
|
||||
targetOptions.AddFlag("AssemblerListingLocation", asmLocation);
|
||||
targetOptions.AddFlag("AssemblerListingLocation", "$(IntDir)\\");
|
||||
targetOptions.Parse(flags);
|
||||
targetOptions.Parse(defineFlags);
|
||||
targetOptions.ParseFinish();
|
||||
|
@ -2643,8 +2643,7 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
|
||||
clOptions.AddFlag("UseFullPaths", "false");
|
||||
}
|
||||
clOptions.AddFlag("PrecompiledHeader", "NotUsing");
|
||||
std::string asmLocation = configName + "/";
|
||||
clOptions.AddFlag("AssemblerListingLocation", asmLocation);
|
||||
clOptions.AddFlag("AssemblerListingLocation", "$(IntDir)");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user