always set PROJECT_SOURCE_DIR etc

This commit is contained in:
Ken Martin 2002-10-04 08:59:02 -04:00
parent d27cd931ae
commit 38d1ea9b4c
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,13 @@ cmLocalGenerator::~cmLocalGenerator()
void cmLocalGenerator::Configure()
{
// set the PROJECT_SOURCE_DIR and PROJECT_BIN_DIR to default values
// just in case the project does not include a PROJECT command
m_Makefile->AddDefinition("PROJECT_BINARY_DIR",
m_Makefile->GetHomeOutputDirectory());
m_Makefile->AddDefinition("PROJECT_SOURCE_DIR",
m_Makefile->GetHomeDirectory());
// find & read the list file
std::string currentStart = m_Makefile->GetStartDirectory();
currentStart += "/CMakeLists.txt";