BUG: Fixed crash when CMAKE_CXX_STACK_SIZE is not defined.
This commit is contained in:
parent
3c5bccf8a1
commit
aa1b32218a
@ -620,8 +620,11 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
|
|||||||
{
|
{
|
||||||
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
|
fout << "\t\t\t\tGenerateDebugInformation=\"TRUE\"\n";
|
||||||
}
|
}
|
||||||
fout << "\t\t\t\tStackReserveSize=\""
|
if(const char* stacksize = m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE"))
|
||||||
<< m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE") << "\"\n";
|
{
|
||||||
|
fout << "\t\t\t\tStackReserveSize=\""
|
||||||
|
<< stacksize << "\"\n";
|
||||||
|
}
|
||||||
temp = m_LibraryOutputPath;
|
temp = m_LibraryOutputPath;
|
||||||
temp += configName;
|
temp += configName;
|
||||||
temp += "/";
|
temp += "/";
|
||||||
@ -680,8 +683,11 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
|
|||||||
{
|
{
|
||||||
fout << "\t\t\t\tSubSystem=\"1\"\n";
|
fout << "\t\t\t\tSubSystem=\"1\"\n";
|
||||||
}
|
}
|
||||||
fout << "\t\t\t\tStackReserveSize=\""
|
if(const char* stacksize = m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE"))
|
||||||
<< m_Makefile->GetDefinition("CMAKE_CXX_STACK_SIZE") << "\"/>\n";
|
{
|
||||||
|
fout << "\t\t\t\tStackReserveSize=\""
|
||||||
|
<< stacksize << "\"/>\n";
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case cmTarget::UTILITY:
|
case cmTarget::UTILITY:
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user