Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fred Wright
CMake
Commits
644e4fdb
Commit
644e4fdb
authored
Mar 17, 2007
by
Bill Hoffman
Browse files
ENH: fix for crash from main tree
parent
6f65bbca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmLocalVisualStudio6Generator.cxx
View file @
644e4fdb
...
...
@@ -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
(
lang
&&
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.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment