VS: Specify absolute output directory for the Midl tool
Generate the OutputDirectory element value as an absolute path to the same location as the existing relative path. Somehow this addresses an occasional failure in a large/complex build, and should not hurt basic use cases.
This commit is contained in:
parent
cb16c7844d
commit
0b54e8366e
|
@ -2522,7 +2522,7 @@ WriteMidlOptions(std::string const& /*config*/,
|
||||||
}
|
}
|
||||||
this->WriteString("%(AdditionalIncludeDirectories)"
|
this->WriteString("%(AdditionalIncludeDirectories)"
|
||||||
"</AdditionalIncludeDirectories>\n", 0);
|
"</AdditionalIncludeDirectories>\n", 0);
|
||||||
this->WriteString("<OutputDirectory>$(IntDir)</OutputDirectory>\n", 3);
|
this->WriteString("<OutputDirectory>$(ProjectDir)/$(IntDir)</OutputDirectory>\n", 3);
|
||||||
this->WriteString("<HeaderFileName>%(Filename).h</HeaderFileName>\n", 3);
|
this->WriteString("<HeaderFileName>%(Filename).h</HeaderFileName>\n", 3);
|
||||||
this->WriteString(
|
this->WriteString(
|
||||||
"<TypeLibraryName>%(Filename).tlb</TypeLibraryName>\n", 3);
|
"<TypeLibraryName>%(Filename).tlb</TypeLibraryName>\n", 3);
|
||||||
|
|
Loading…
Reference in New Issue