diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-25 13:38:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-01-25 13:38:06 (GMT) |
commit | 07ef88c985a66cec5126930dbc3cfd736072183e (patch) | |
tree | cc9834e4f1f898845408fa21c006d4f9c391b318 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 008406a96c66afaa6a3e1105c730cffd1b1e8bc8 (diff) | |
download | CMake-07ef88c985a66cec5126930dbc3cfd736072183e.zip CMake-07ef88c985a66cec5126930dbc3cfd736072183e.tar.gz CMake-07ef88c985a66cec5126930dbc3cfd736072183e.tar.bz2 |
ENH: add COMPILE_FLAGS to targets
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 8578588..466154d 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1036,11 +1036,17 @@ void cmLocalVisualStudio7Generator::WriteGroup(const cmSourceGroup *sg, cmTarget std::string additionalDeps; // Check for extra compiler flags. + if(target.GetProperty("COMPILE_FLAGS")) + { + compileFlags += " "; + compileFlags += target.GetProperty("COMPILE_FLAGS"); + } const char* cflags = (*sf)->GetProperty("COMPILE_FLAGS"); if(cflags) { - compileFlags = cflags; - } + compileFlags += " "; + compileFlags += cflags; + } const char* lang = m_GlobalGenerator->GetLanguageFromExtension((*sf)->GetSourceExtension().c_str()); if(lang && strcmp(lang, "CXX") == 0) |