summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r--Source/cmMakefile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h
index 62961e8..293d2bf 100644
--- a/Source/cmMakefile.h
+++ b/Source/cmMakefile.h
@@ -173,6 +173,7 @@ public:
{
m_cmHomeDirectory = dir;
cmSystemTools::ConvertToUnixSlashes(m_cmHomeDirectory);
+ this->AddDefinition("CMAKE_SOURCE_DIR", this->GetHomeDirectory());
}
const char* GetHomeDirectory()
{
@@ -182,6 +183,7 @@ public:
{
m_HomeOutputDirectory = lib;
cmSystemTools::ConvertToUnixSlashes(m_HomeOutputDirectory);
+ this->AddDefinition("CMAKE_BINARY_DIR", this->GetHomeOutputDirectory());
}
const char* GetHomeOutputDirectory()
{