summaryrefslogtreecommitdiffstats
path: root/Source/cmDSPWriter.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-20 20:49:09 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-20 20:49:09 (GMT)
commit339bdd47b584a7e273bd488e21d95d241be3baaa (patch)
tree6585054fc78b2bcdb242571c8f282ee166c0782d /Source/cmDSPWriter.cxx
parentadbae91cb5a5cb4cd33df273dd977791406ec339 (diff)
downloadCMake-339bdd47b584a7e273bd488e21d95d241be3baaa.zip
CMake-339bdd47b584a7e273bd488e21d95d241be3baaa.tar.gz
CMake-339bdd47b584a7e273bd488e21d95d241be3baaa.tar.bz2
ENH: boot strap mfc gui and support for MFC
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r--Source/cmDSPWriter.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index 0135b59..b936a11 100644
--- a/Source/cmDSPWriter.cxx
+++ b/Source/cmDSPWriter.cxx
@@ -590,6 +590,13 @@ void cmDSPWriter::WriteDSPHeader(std::ostream& fout, const char *libName,
{
fin.getline(buffer, 2048);
std::string line = buffer;
+ const char* mfcFlag = m_Makefile->GetDefinition("CMAKE_MFC_FLAG");
+ if(!mfcFlag)
+ {
+ mfcFlag = "0";
+ }
+ cmSystemTools::ReplaceString(line, "CMAKE_MFC_FLAG",
+ mfcFlag);
cmSystemTools::ReplaceString(line, "CM_LIBRARIES",
libOptions.c_str());
cmSystemTools::ReplaceString(line, "CM_DEBUG_LIBRARIES",