summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-03-08 15:30:18 (GMT)
committerBrad King <brad.king@kitware.com>2001-03-08 15:30:18 (GMT)
commit4666b017101de1aa9367a8c6d8ad0b8cb03a77c5 (patch)
treeb7a444b9a0dc7689617802f1321ff1c6d6f8197e /Source/cmMakefile.cxx
parent5c8b68ba70c77eb2409e29a416599e13cc2d7e5e (diff)
downloadCMake-4666b017101de1aa9367a8c6d8ad0b8cb03a77c5.zip
CMake-4666b017101de1aa9367a8c6d8ad0b8cb03a77c5.tar.gz
CMake-4666b017101de1aa9367a8c6d8ad0b8cb03a77c5.tar.bz2
ENH: Added UTILITY_SOURCE command for specifying where a 3rd party utility's source is located when it is included in the distribution of a project.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx15
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 8e6bc96..4ce9322 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -29,6 +29,7 @@ cmMakefile::cmMakefile()
m_DefineFlags = " ";
m_MakefileGenerator = 0;
this->AddDefaultCommands();
+ this->AddDefaultDefinitions();
}
void cmMakefile::AddDefaultCommands()
@@ -523,5 +524,17 @@ void cmMakefile::GenerateCacheOnly()
}
}
-
+/**
+ * Add the default definitions to the makefile. These values must not
+ * be dependent on anything that isn't known when this cmMakefile instance
+ * is constructed.
+ */
+void cmMakefile::AddDefaultDefinitions()
+{
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ this->AddDefinition("CMAKE_CFG","$(CFG)");
+#else
+ this->AddDefinition("CMAKE_CFG",".");
+#endif
+}