BUG: Fixed crash when CMAKE_CXX_STACK_SIZE is not defined.

This commit is contained in:
Brad King 2004-08-05 09:17:25 -04:00
parent 3c5bccf8a1
commit aa1b32218a
1 changed files with 10 additions and 4 deletions

View File

@ -620,8 +620,11 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
{
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
}
fout << "\t\t\t\tStackReserveSize=\""
<< m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE") << "\"\n";
if(const char* stacksize = m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE"))
{
fout << "\t\t\t\tStackReserveSize=\""
<< stacksize << "\"\n";
}
temp = m_LibraryOutputPath;
temp += configName;
temp += "/";
@ -680,8 +683,11 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
{
fout << "\t\t\t\tSubSystem=\"1\"\n";
}
fout << "\t\t\t\tStackReserveSize=\""
<< m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE") << "\"/>\n";
if(const char* stacksize = m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE"))
{
fout << "\t\t\t\tStackReserveSize=\""
<< stacksize << "\"/>\n";
}
break;
case cmTarget::UTILITY:
break;