diff options
author | Brad King <brad.king@kitware.com> | 2006-02-24 16:13:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-02-24 16:13:31 (GMT) |
commit | 576f0b65c739bc719d493d66fc25c90404067943 (patch) | |
tree | 2761d2f453ff14102cff51bec8dd6e1b1a7aaaaf /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | f437c8e888db7a934792371e74fd7c15b71ec34f (diff) | |
download | CMake-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.cxx | 7 |
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")); |