diff options
author | Tim Blechmann <tim@klingt.org> | 2015-02-19 14:35:02 +0800 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-02-23 13:22:07 -0500 |
commit | 0b54e8366e686340102867035e3dfdedf6f783b9 (patch) | |
tree | 5e693951d93efbf993e73dc1d2a0509b44ae566c /Source/cmVisualStudio10TargetGenerator.cxx | |
parent | cb16c7844dce627ab40f404c6ac49db3cde7b0c0 (diff) | |
download | cmake-0b54e8366e686340102867035e3dfdedf6f783b9.tar.gz |
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.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx index a286049cb3..ca8310c912 100644 --- a/Source/cmVisualStudio10TargetGenerator.cxx +++ b/Source/cmVisualStudio10TargetGenerator.cxx @@ -2522,7 +2522,7 @@ WriteMidlOptions(std::string const& /*config*/, } this->WriteString("%(AdditionalIncludeDirectories)" "</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( "<TypeLibraryName>%(Filename).tlb</TypeLibraryName>\n", 3); |