added PROJECT_SOURCE_DIR

This commit is contained in:
Ken Martin 2001-05-23 10:01:10 -04:00
parent e606732b94
commit 43237a88c5
1 changed files with 8 additions and 0 deletions

View File

@ -68,6 +68,14 @@ bool cmProjectCommand::Invoke(std::vector<std::string>& args)
m_Makefile->GetCurrentDirectory(), m_Makefile->GetCurrentDirectory(),
"Value Computed by CMake", cmCacheManager::STATIC); "Value Computed by CMake", cmCacheManager::STATIC);
bindir = "PROJECT_BINARY_DIR";
srcdir = "PROJECT_SOURCE_DIR";
m_Makefile->AddDefinition(bindir.c_str(),
m_Makefile->GetCurrentOutputDirectory());
m_Makefile->AddDefinition(srcdir.c_str(),
m_Makefile->GetCurrentDirectory());
return true; return true;
} }