mirror of
https://github.com/reactos/CMake.git
synced 2024-11-29 22:40:25 +00:00
BUG: fix crash with force cxx type
This commit is contained in:
parent
0afb1fa1aa
commit
d4d2779542
@ -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)
|
||||
|
@ -729,7 +729,11 @@ void cmLocalVisualStudio7Generator::WriteVCProjFile(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 = cc->second.m_SourceFile->GetProperty("COMPILE_FLAGS");
|
||||
}
|
||||
if(cmSystemTools::GetFileFormat(
|
||||
cc->second.m_SourceFile->GetSourceExtension().c_str())
|
||||
== cmSystemTools::CXX_FILE_FORMAT)
|
||||
|
Loading…
Reference in New Issue
Block a user