From 0b54e8366e686340102867035e3dfdedf6f783b9 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Thu, 19 Feb 2015 14:35:02 +0800 Subject: 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. --- Source/cmVisualStudio10TargetGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)" "\n", 0); - this->WriteString("$(IntDir)\n", 3); + this->WriteString("$(ProjectDir)/$(IntDir)\n", 3); this->WriteString("%(Filename).h\n", 3); this->WriteString( "%(Filename).tlb\n", 3); -- cgit v0.12