diff options
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index ec4bbe2..d2fa74c 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -293,7 +293,11 @@ void cmLocalVisualStudio6Generator::WriteDSPFile(std::ostream& fout, if(cc->second.m_SourceFile) { // Check for extra compiler flags. - compileFlags = cc->second.m_SourceFile->GetProperty("COMPILE_FLAGS"); + const char* cflags = cc->second.m_SourceFile->GetProperty("COMPILE_FLAGS"); + if(cflags) + { + compileFlags = cflags; + } if(cmSystemTools::GetFileFormat( cc->second.m_SourceFile->GetSourceExtension().c_str()) == cmSystemTools::CXX_FILE_FORMAT) |