diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-20 14:35:21 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-20 14:35:21 (GMT) |
commit | 1d8e7e9411f62a60340b1edba6c55a8e7548a93b (patch) | |
tree | 932198ce265b630740c8340c0e2d0a8a723919bc /Source/cmLocalVisualStudio6Generator.cxx | |
parent | 5c0a340a9e0146841b14065497373cb9a79d5768 (diff) | |
download | CMake-1d8e7e9411f62a60340b1edba6c55a8e7548a93b.zip CMake-1d8e7e9411f62a60340b1edba6c55a8e7548a93b.tar.gz CMake-1d8e7e9411f62a60340b1edba6c55a8e7548a93b.tar.bz2 |
BUG: fix for bug 4423 set language fixes
Diffstat (limited to 'Source/cmLocalVisualStudio6Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio6Generator.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio6Generator.cxx b/Source/cmLocalVisualStudio6Generator.cxx index edb0610..284a2a6 100644 --- a/Source/cmLocalVisualStudio6Generator.cxx +++ b/Source/cmLocalVisualStudio6Generator.cxx @@ -421,12 +421,16 @@ void cmLocalVisualStudio6Generator compileFlags += cflags; } - const char* lang = this->GlobalGenerator-> - GetLanguageFromExtension((*sf)->GetSourceExtension().c_str()); + const char* lang = this->GetSourceFileLanguage(*(*sf)); if(lang && 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. |