summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-06-20 16:49:09 -0400
committerBill Hoffman <bill.hoffman@kitware.com>2001-06-20 16:49:09 -0400
commit339bdd47b584a7e273bd488e21d95d241be3baaa (patch)
tree6585054fc78b2bcdb242571c8f282ee166c0782d /Source
parentadbae91cb5a5cb4cd33df273dd977791406ec339 (diff)
downloadcmake-339bdd47b584a7e273bd488e21d95d241be3baaa.tar.gz
ENH: boot strap mfc gui and support for MFC
Diffstat (limited to 'Source')
-rw-r--r--Source/CMakeLists.txt8
-rw-r--r--Source/cmDSPWriter.cxx7
2 files changed, 13 insertions, 2 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt
index a38e9affa3..6c38220e0e 100644
--- a/Source/CMakeLists.txt
+++ b/Source/CMakeLists.txt
@@ -35,10 +35,14 @@ ADD_DEFINITIONS(-DCMAKE_BUILD_WITH_CMAKE)
IF (WIN32)
SOURCE_FILES(SRCS cmDSWWriter.cxx cmDSPWriter.cxx cmMSProjectGenerator.cxx)
-ELSE (WIN32)
- SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx)
+ IF(NOT UNIX)
+ SUBDIRS(MFCDialog)
+ ENDIF(NOT UNIX)
ENDIF (WIN32)
+SOURCE_FILES(SRCS cmUnixMakefileGenerator.cxx)
+
+
# create a library used by the command line and the GUI
ADD_LIBRARY(CMakeLib SRCS)
# always link in the library
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index 0135b591f9..b936a1134e 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",