[CMake] Modification to make visual studio 2010 work better
J Decker
d3ck0r at gmail.com
Sun Sep 26 18:09:11 EDT 2010
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -767,7 +767,7 @@ bool
cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
hasFlags = true;
this->WriteString("<ObjectFileName>", 3);
(*this->BuildFileStream )
- << "$(Configuration)/" << objectName << "</ObjectFileName>\n";
+ << "$(IntDir)/" << objectName << "</ObjectFileName>\n";
}
std::vector<std::string> *configs =
static_cast<cmGlobalVisualStudio7Generator *>
It turns out that somehow magic happens and some specific property is
applied in the cmakelists.txt because of the same name... most targets
don't get custom overrides; when they object filename is overriden, it
would be better to reference the same output directory. Or, if there
is some reason the same file is expected in the same output folder
(not sure how, because Test.c and teST.c can't both exist in a single
project, no matter what their location.)
More information about the CMake
mailing list