Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
CMake
CMake
Commits
323860cb
Commit
323860cb
authored
Feb 20, 2007
by
Bill Hoffman
Browse files
ENH: fix crash
parent
ba66b8d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Source/cmLocalVisualStudio6Generator.cxx
View file @
323860cb
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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