summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-10 21:47:37 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-12-10 21:47:37 (GMT)
commit3893ee72d2d5a04889cc1056b56029c9d60393c0 (patch)
tree3d96e526b726e7c0f2965489f74f2655776d6390 /Source/cmMakefile.h
parentab64db6ee84604c361a2d6f279398f7c9d3247f5 (diff)
downloadCMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.zip
CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.tar.gz
CMake-3893ee72d2d5a04889cc1056b56029c9d60393c0.tar.bz2
Add comment support, so that you can see in build process what the custom command does
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 8d1b546..dbb62af 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -123,7 +123,8 @@ public:
const std::vector<std::string>& commandArgs,
const std::vector<std::string>& depends,
const std::vector<std::string>& outputs,
- const char *target);
+ const char *target,
+ const char *comment = 0);
void AddCustomCommand(const char* source,
const char* command,
@@ -260,6 +261,8 @@ public:
{
m_cmCurrentDirectory = m_cmStartDirectory;
m_CurrentOutputDirectory = m_StartOutputDirectory;
+ this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR", m_cmCurrentDirectory.c_str());
+ this->AddDefinition("CMAKE_CURRENT_BINARY_DIR", m_CurrentOutputDirectory.c_str());
}
//@{
@@ -323,6 +326,7 @@ public:
{
m_cmCurrentDirectory = dir;
cmSystemTools::ConvertToUnixSlashes(m_cmCurrentDirectory);
+ this->AddDefinition("CMAKE_CURRENT_SOURCE_DIR", m_cmCurrentDirectory.c_str());
}
const char* GetCurrentDirectory() const
{
@@ -332,6 +336,7 @@ public:
{
m_CurrentOutputDirectory = lib;
cmSystemTools::ConvertToUnixSlashes(m_CurrentOutputDirectory);
+ this->AddDefinition("CMAKE_CURRENT_BINARY_DIR", m_CurrentOutputDirectory.c_str());
}
const char* GetCurrentOutputDirectory() const
{