[cmake-commits] hoffman committed cmLocalVisualStudio6Generator.cxx
1.109 1.110
cmake-commits at cmake.org
cmake-commits at cmake.org
Tue Jan 23 11:25:28 EST 2007
Update of /cvsroot/CMake/CMake/Source
In directory public:/mounts/ram/cvs-serv3747
Modified Files:
cmLocalVisualStudio6Generator.cxx
Log Message:
ENH: undo bug fix because of failed test
Index: cmLocalVisualStudio6Generator.cxx
===================================================================
RCS file: /cvsroot/CMake/CMake/Source/cmLocalVisualStudio6Generator.cxx,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- cmLocalVisualStudio6Generator.cxx 23 Jan 2007 15:50:05 -0000 1.109
+++ cmLocalVisualStudio6Generator.cxx 23 Jan 2007 16:25:26 -0000 1.110
@@ -1076,10 +1076,6 @@
// Get extra linker options for this target type.
std::string extraLinkOptions;
- std::string extraLinkOptionsDebug;
- std::string extraLinkOptionsRelease;
- std::string extraLinkOptionsMinSizeRel;
- std::string extraLinkOptionsRelWithDebInfo;
if(target.GetType() == cmTarget::EXECUTABLE)
{
extraLinkOptions =
@@ -1103,33 +1099,6 @@
extraLinkOptions += targetLinkFlags;
}
- if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_DEBUG"))
- {
- extraLinkOptionsDebug += " ";
- extraLinkOptionsDebug += targetLinkFlags;
- }
-
- if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_RELEASE"))
- {
- extraLinkOptionsRelease += " ";
- extraLinkOptionsRelease += targetLinkFlags;
- }
-
- if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_MINSIZEREL"))
- {
- extraLinkOptionsMinSizeRel += " ";
- extraLinkOptionsMinSizeRel += targetLinkFlags;
- }
-
- if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_RELWITHDEBINFO"))
- {
- extraLinkOptionsRelWithDebInfo += " ";
- extraLinkOptionsRelWithDebInfo += targetLinkFlags;
- }
-
-
-
-
// Get standard libraries for this language.
if(target.GetType() >= cmTarget::EXECUTABLE &&
target.GetType() <= cmTarget::MODULE_LIBRARY)
@@ -1202,13 +1171,13 @@
target.GetType() == cmTarget::SHARED_LIBRARY ||
target.GetType() == cmTarget::MODULE_LIBRARY)
{
- this->ComputeLinkOptions(target, "Debug", extraLinkOptionsDebug,
+ this->ComputeLinkOptions(target, "Debug", extraLinkOptions,
optionsDebug);
- this->ComputeLinkOptions(target, "Release", extraLinkOptionsRelease,
+ this->ComputeLinkOptions(target, "Release", extraLinkOptions,
optionsRelease);
- this->ComputeLinkOptions(target, "MinSizeRel", extraLinkOptionsMinSizeRel,
+ this->ComputeLinkOptions(target, "MinSizeRel", extraLinkOptions,
optionsMinSizeRel);
- this->ComputeLinkOptions(target, "RelWithDebInfo", extraLinkOptionsRelWithDebInfo,
+ this->ComputeLinkOptions(target, "RelWithDebInfo", extraLinkOptions,
optionsRelWithDebInfo);
}
@@ -1372,18 +1341,41 @@
std::string flagVar = baseFlagVar + "_RELEASE";
flagsRelease = this->Makefile->GetSafeDefinition(flagVar.c_str());
flagsRelease += " -DCMAKE_INTDIR=\\\"Release\\\" ";
-
+ if(const char* targetLinkFlags =
+ target.GetProperty("LINK_FLAGS_RELEASE"))
+ {
+ flagsRelease += targetLinkFlags;
+ flagsRelease += " ";
+ }
flagVar = baseFlagVar + "_MINSIZEREL";
flagsMinSize = this->Makefile->GetSafeDefinition(flagVar.c_str());
flagsMinSize += " -DCMAKE_INTDIR=\\\"MinSizeRel\\\" ";
-
+ if(const char* targetLinkFlags =
+ target.GetProperty("LINK_FLAGS_MINSIZEREL"))
+ {
+ flagsMinSize += targetLinkFlags;
+ flagsMinSize += " ";
+ }
+
flagVar = baseFlagVar + "_DEBUG";
flagsDebug = this->Makefile->GetSafeDefinition(flagVar.c_str());
flagsDebug += " -DCMAKE_INTDIR=\\\"Debug\\\" ";
+ if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_DEBUG"))
+ {
+ flagsDebug += targetLinkFlags;
+ flagsDebug += " ";
+ }
flagVar = baseFlagVar + "_RELWITHDEBINFO";
flagsDebugRel = this->Makefile->GetSafeDefinition(flagVar.c_str());
flagsDebugRel += " -DCMAKE_INTDIR=\\\"RelWithDebInfo\\\" ";
+ if(const char* targetLinkFlags =
+ target.GetProperty("LINK_FLAGS_RELWITHDEBINFO"))
+ {
+ flagsDebugRel += targetLinkFlags;
+ flagsDebugRel += " ";
+ }
+
}
// if unicode is not found, then add -D_MBCS
More information about the Cmake-commits
mailing list