diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-08 18:33:00 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-08 18:33:00 (GMT) |
commit | 6dc78a2315d5538d562b0270276c88c0fdcb147b (patch) | |
tree | 8a38f2b0611c1fed9fa23a3051fd1afab28679bd /Source/cmDSPWriter.cxx | |
parent | 1a16fee4302d30e3ac41c6be807720615e85da4e (diff) | |
download | CMake-6dc78a2315d5538d562b0270276c88c0fdcb147b.zip CMake-6dc78a2315d5538d562b0270276c88c0fdcb147b.tar.gz CMake-6dc78a2315d5538d562b0270276c88c0fdcb147b.tar.bz2 |
ENH: add CMAKE_EXTRA_LINK_FLAGS to dsp generator
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r-- | Source/cmDSPWriter.cxx | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index c3ad622..d981e42 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -653,8 +653,15 @@ void cmDSPWriter::WriteDSPHeader(std::ostream& fout, const char *libName, } } } - libOptions += " /STACK:10000000 "; - libMultiLineOptions += "# ADD LINK32 /STACK:10000000 \n"; + std::string extraLinkOptions = + m_Makefile->GetDefinition("CMAKE_EXTRA_LINK_FLAGS"); + if(extraLinkOptions.size()) + { + libOptions += extraLinkOptions; + libMultiLineOptions += "# ADD LINK32 "; + libMultiLineOptions += extraLinkOptions; + libMultiLineOptions += " \n"; + } // are there any custom rules on the target itself // only if the target is a lib or exe |