summaryrefslogtreecommitdiff
path: root/Source/cmProjectCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-02-15 13:30:13 -0500
committerKen Martin <ken.martin@kitware.com>2001-02-15 13:30:13 -0500
commitfce56c57c497ede3a7afcbc7965846cc8bad9db2 (patch)
tree0fb37474ade8ff1ec1ed40e30e3e02074baa5b42 /Source/cmProjectCommand.cxx
parent252b0d89572b5cadb3ba3b9f5db6dfa35f60beba (diff)
downloadcmake-fce56c57c497ede3a7afcbc7965846cc8bad9db2.tar.gz
some cleanup and fixes
Diffstat (limited to 'Source/cmProjectCommand.cxx')
-rw-r--r--Source/cmProjectCommand.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmProjectCommand.cxx b/Source/cmProjectCommand.cxx
index b35e15d0e5..0eff60770a 100644
--- a/Source/cmProjectCommand.cxx
+++ b/Source/cmProjectCommand.cxx
@@ -24,6 +24,17 @@ bool cmProjectCommand::Invoke(std::vector<std::string>& args)
return false;
}
m_Makefile->SetProjectName(args[0].c_str());
+
+ std::string bindir = args[0];
+ bindir += "_BINARY_DIR";
+ std::string srcdir = args[0];
+ srcdir += "_SOURCE_DIR";
+
+ m_Makefile->AddDefinition(bindir.c_str(),
+ m_Makefile->GetCurrentOutputDirectory());
+ m_Makefile->AddDefinition(srcdir.c_str(),
+ m_Makefile->GetCurrentDirectory());
+
return true;
}