diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-09 17:19:36 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-07-09 17:19:36 (GMT) |
commit | fbdac25f8182a6a33e6c3baa90cce55b9417a6af (patch) | |
tree | eeaaa71754488f7ff2484736deb6b8ae6f318958 /Source/cmMakefile.cxx | |
parent | e015e103709fe12c57bd94207002eafa53733088 (diff) | |
download | CMake-fbdac25f8182a6a33e6c3baa90cce55b9417a6af.zip CMake-fbdac25f8182a6a33e6c3baa90cce55b9417a6af.tar.gz CMake-fbdac25f8182a6a33e6c3baa90cce55b9417a6af.tar.bz2 |
ENH: Add a copy constructor to copy the values
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index ff35cf8..49bf647 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -90,6 +90,47 @@ cmMakefile::cmMakefile() this->PreOrder = false; } +cmMakefile::cmMakefile(const cmMakefile& mf) +{ + this->Prefix = mf.Prefix; + this->AuxSourceDirectories = mf.AuxSourceDirectories; + this->cmStartDirectory = mf.cmStartDirectory; + this->StartOutputDirectory = mf.StartOutputDirectory; + this->cmHomeDirectory = mf.cmHomeDirectory; + this->HomeOutputDirectory = mf.HomeOutputDirectory; + this->cmCurrentListFile = mf.cmCurrentListFile; + this->ProjectName = mf.ProjectName; + this->Targets = mf.Targets; + this->SourceFiles = mf.SourceFiles; + this->Tests = mf.Tests; + this->IncludeDirectories = mf.IncludeDirectories; + this->LinkDirectories = mf.LinkDirectories; + this->ListFiles = mf.ListFiles; + this->OutputFiles = mf.OutputFiles; + this->LinkLibraries = mf.LinkLibraries; + this->InstallGenerators = mf.InstallGenerators; + this->IncludeFileRegularExpression = mf.IncludeFileRegularExpression; + this->ComplainFileRegularExpression = mf.ComplainFileRegularExpression; + this->SourceFileExtensions = mf.SourceFileExtensions; + this->HeaderFileExtensions = mf.HeaderFileExtensions; + this->DefineFlags = mf.DefineFlags; + +#if defined(CMAKE_BUILD_WITH_CMAKE) + this->SourceGroups = mf.SourceGroups; +#endif + + this->Definitions = mf.Definitions; + this->LocalGenerator = mf.LocalGenerator; + this->FunctionBlockers = mf.FunctionBlockers; + this->DataMap = mf.DataMap; + this->MacrosMap = mf.MacrosMap; + this->SubDirectoryOrder = mf.SubDirectoryOrder; + this->TemporaryDefinitionKey = mf.TemporaryDefinitionKey; + this->Properties = mf.Properties; + this->PreOrder = mf.PreOrder; + this->ListFileStack = mf.ListFileStack; +} + const char* cmMakefile::GetReleaseVersion() { #if CMake_VERSION_MINOR & 1 |