summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorTim Blechmann <tim@klingt.org>2015-02-19 06:35:02 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-23 18:22:07 (GMT)
commit0b54e8366e686340102867035e3dfdedf6f783b9 (patch)
tree5e693951d93efbf993e73dc1d2a0509b44ae566c /Source
parentcb16c7844dce627ab40f404c6ac49db3cde7b0c0 (diff)
downloadCMake-0b54e8366e686340102867035e3dfdedf6f783b9.zip
CMake-0b54e8366e686340102867035e3dfdedf6f783b9.tar.gz
CMake-0b54e8366e686340102867035e3dfdedf6f783b9.tar.bz2
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')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index a286049..ca8310c 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);