diff options
author | Brad King <brad.king@kitware.com> | 2004-08-05 13:17:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2004-08-05 13:17:25 (GMT) |
commit | aa1b32218a0664242ebd2ba988194f98026b88ac (patch) | |
tree | 2b23dbab0d43bf34f1665220ff94fd2e4616f1c9 | |
parent | 3c5bccf8a13418bc666798dd517b52f456bb2c80 (diff) | |
download | CMake-aa1b32218a0664242ebd2ba988194f98026b88ac.zip CMake-aa1b32218a0664242ebd2ba988194f98026b88ac.tar.gz CMake-aa1b32218a0664242ebd2ba988194f98026b88ac.tar.bz2 |
BUG: Fixed crash when CMAKE_CXX_STACK_SIZE is not defined.
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 3111232..7e813cd 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -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; |