diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-20 15:52:06 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-20 15:52:06 (GMT) |
commit | 323860cbdf473d99d85d934caf4dfa19d0751387 (patch) | |
tree | c6a291eeb8a5f87c18e198683935dc103819aca5 /Source | |
parent | ba66b8d50b68bb40ad1c06ef27dea04f8a316db7 (diff) | |
download | CMake-323860cbdf473d99d85d934caf4dfa19d0751387.zip CMake-323860cbdf473d99d85d934caf4dfa19d0751387.tar.gz CMake-323860cbdf473d99d85d934caf4dfa19d0751387.tar.bz2 |
ENH: fix crash
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index 284a2a6..5386fa6 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -422,15 +422,18 @@ void cmLocalVisualStudio6Generator } const char* lang = this->GetSourceFileLanguage(*(*sf)); - if(lang && strcmp(lang, "CXX") == 0) + if(lang) { - // force a C++ file type - compileFlags += " /TP "; - } - else if(strcmp(lang, "C") == 0) - { - // force to c file type - compileFlags += " /TC "; + if(strcmp(lang, "CXX") == 0) + { + // force a C++ file type + compileFlags += " /TP "; + } + else if(strcmp(lang, "C") == 0) + { + // force to c file type + compileFlags += " /TC "; + } } // Check for extra object-file dependencies. |