diff options
author | Brad King <brad.king@kitware.com> | 2001-03-08 15:30:18 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-03-08 15:30:18 (GMT) |
commit | 4666b017101de1aa9367a8c6d8ad0b8cb03a77c5 (patch) | |
tree | b7a444b9a0dc7689617802f1321ff1c6d6f8197e /Source/cmMakefile.cxx | |
parent | 5c8b68ba70c77eb2409e29a416599e13cc2d7e5e (diff) | |
download | CMake-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.cxx | 15 |
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 +} |