diff options
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; } } |