Browse Source

cmState: Initialize properties immediately.

Don't leave this as cmMakefile responsibility.
pull/196/head
Stephen Kelly 10 years ago
parent
commit
0aa34de549
  1. 2
      Source/cmMakefile.cxx
  2. 4
      Source/cmState.cxx

2
Source/cmMakefile.cxx

@ -55,8 +55,6 @@ cmMakefile::cmMakefile(cmGlobalGenerator* globalGenerator,
this->SuppressWatches = false;
// Setup the default include file regular expression (match everything).
this->SetProperty("INCLUDE_REGULAR_EXPRESSION", "^.*$");
// Setup the default include complaint regular expression (match nothing).
this->ComplainFileRegularExpression = "^$";
// Source and header file extensions that we can handle

4
Source/cmState.cxx

@ -1381,6 +1381,10 @@ void cmState::Snapshot::SetDefaultDefinitions()
this->SetDefinition("CMAKE_FILES_DIRECTORY",
cmake::GetCMakeFilesDirectory());
// Setup the default include file regular expression (match everything).
this->Position->BuildSystemDirectory
->Properties.SetProperty("INCLUDE_REGULAR_EXPRESSION", "^.*$");
}
void cmState::Snapshot::SetDirectoryDefinitions()

Loading…
Cancel
Save