summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefileExecutableTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-02-24 16:13:31 (GMT)
committerBrad King <brad.king@kitware.com>2006-02-24 16:13:31 (GMT)
commit576f0b65c739bc719d493d66fc25c90404067943 (patch)
tree2761d2f453ff14102cff51bec8dd6e1b1a7aaaaf /Source/cmMakefileExecutableTargetGenerator.cxx
parentf437c8e888db7a934792371e74fd7c15b71ec34f (diff)
downloadCMake-576f0b65c739bc719d493d66fc25c90404067943.zip
CMake-576f0b65c739bc719d493d66fc25c90404067943.tar.gz
CMake-576f0b65c739bc719d493d66fc25c90404067943.tar.bz2
BUG: Fix generation of Xcode 2.0 and earlier projects to use CMAKE_BUILD_TYPE.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r--Source/cmMakefileExecutableTargetGenerator.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx
index 5399151..b763349 100644
--- a/Source/cmMakefileExecutableTargetGenerator.cxx
+++ b/Source/cmMakefileExecutableTargetGenerator.cxx
@@ -187,7 +187,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
// Add flags to create an executable.
this->LocalGenerator->
- AddConfigVariableFlags(linkFlags, "CMAKE_EXE_LINKER_FLAGS");
+ AddConfigVariableFlags(linkFlags, "CMAKE_EXE_LINKER_FLAGS",
+ this->LocalGenerator->m_ConfigurationName.c_str());
if(this->Target->GetPropertyAsBool("WIN32_EXECUTABLE"))
@@ -202,7 +203,9 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink)
}
// Add language-specific flags.
- this->LocalGenerator->AddLanguageFlags(flags, linkLanguage);
+ this->LocalGenerator
+ ->AddLanguageFlags(flags, linkLanguage,
+ this->LocalGenerator->m_ConfigurationName.c_str());
// Add target-specific linker flags.
this->LocalGenerator->AppendFlags(linkFlags, this->Target->GetProperty("LINK_FLAGS"));