diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-23 21:19:38 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-05-23 21:19:38 (GMT) |
commit | bc9531c0d19a57a80b2ac20bafcbe41550f892e4 (patch) | |
tree | 5d73830cbf08d7a9fe28f685c307309c34e2e6d0 /Source/cmDSPWriter.cxx | |
parent | 39066269d19eb0ff9b5db4b4a1b24622c4ca925b (diff) | |
download | CMake-bc9531c0d19a57a80b2ac20bafcbe41550f892e4.zip CMake-bc9531c0d19a57a80b2ac20bafcbe41550f892e4.tar.gz CMake-bc9531c0d19a57a80b2ac20bafcbe41550f892e4.tar.bz2 |
ENH: create CMAKE_CXX_FLAGS_[Buildtype] flags
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r-- | Source/cmDSPWriter.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 7fa43f0..dfee8f1 100644 --- a/Source/cmDSPWriter.cxx +++ b/Source/cmDSPWriter.cxx @@ -565,6 +565,24 @@ void cmDSPMakefile::WriteDSPHeader(std::ostream& fout, const char *libName, cmSystemTools::ReplaceString(line, "EXTRA_DEFINES", m_Makefile->GetDefineFlags()); + cmSystemTools::ReplaceString(line, + "CMAKE_CXX_FLAGS_RELEASE", + m_Makefile-> + GetDefinition("CMAKE_CXX_FLAGS_RELEASE")); + cmSystemTools::ReplaceString(line, + "CMAKE_CXX_FLAGS_MINSIZEREL", + m_Makefile-> + GetDefinition("CMAKE_CXX_FLAGS_MINSIZEREL") + ); + cmSystemTools::ReplaceString(line, + "CMAKE_CXX_FLAGS_DEBUG", + m_Makefile-> + GetDefinition("CMAKE_CXX_FLAGS_DEBUG")); + cmSystemTools::ReplaceString(line, + "CMAKE_CXX_FLAGS", + m_Makefile-> + GetDefinition("CMAKE_CXX_FLAGS")); + fout << line.c_str() << std::endl; } } |