diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index b290aed73..8dfafffbb 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -767,7 +767,7 @@ bool cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
hasFlags = true;
this->WriteString("", 3);
(*this->BuildFileStream )
- << "$(Configuration)/" << objectName << "\n";
+ << "$(IntDir)/" << objectName << "\n";
}
std::vector *configs =
static_cast