From 7b4adecf9826bc6c099e0230c81549382517bf11 Mon Sep 17 00:00:00 2001 From: Brad King Date: Tue, 18 Apr 2006 11:53:41 -0400 Subject: BUG: Do not require language flags variables. Other generators do not, and it breaks programmable language support (like the Java test). --- Source/cmLocalVisualStudio6Generator.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index b1406d3..7310953 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -1224,10 +1224,10 @@ void cmLocalVisualStudio6Generator std::string baseFlagVar = "CMAKE_"; baseFlagVar += linkLanguage; baseFlagVar += "_FLAGS"; - flags = this->Makefile->GetRequiredDefinition(baseFlagVar.c_str()); + flags = this->Makefile->GetSafeDefinition(baseFlagVar.c_str()); std::string flagVar = baseFlagVar + "_RELEASE"; - flagsRelease = this->Makefile->GetRequiredDefinition(flagVar.c_str()); + flagsRelease = this->Makefile->GetSafeDefinition(flagVar.c_str()); flagsRelease += " -DCMAKE_INTDIR=\\\"Release\\\" "; if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_RELEASE")) { @@ -1235,7 +1235,7 @@ void cmLocalVisualStudio6Generator flagsRelease += " "; } flagVar = baseFlagVar + "_MINSIZEREL"; - flagsMinSize = this->Makefile->GetRequiredDefinition(flagVar.c_str()); + flagsMinSize = this->Makefile->GetSafeDefinition(flagVar.c_str()); flagsMinSize += " -DCMAKE_INTDIR=\\\"MinSizeRel\\\" "; if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_MINSIZEREL")) { @@ -1244,7 +1244,7 @@ void cmLocalVisualStudio6Generator } flagVar = baseFlagVar + "_DEBUG"; - flagsDebug = this->Makefile->GetRequiredDefinition(flagVar.c_str()); + flagsDebug = this->Makefile->GetSafeDefinition(flagVar.c_str()); flagsDebug += " -DCMAKE_INTDIR=\\\"Debug\\\" "; if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_DEBUG")) { @@ -1253,7 +1253,7 @@ void cmLocalVisualStudio6Generator } flagVar = baseFlagVar + "_RELWITHDEBINFO"; - flagsDebugRel = this->Makefile->GetRequiredDefinition(flagVar.c_str()); + flagsDebugRel = this->Makefile->GetSafeDefinition(flagVar.c_str()); flagsDebugRel += " -DCMAKE_INTDIR=\\\"RelWithDebInfo\\\" "; if(const char* targetLinkFlags = target.GetProperty("LINK_FLAGS_RELWITHDEBINFO")) { -- cgit v0.12