diff options
author | Ken Martin <ken.martin@kitware.com> | 2002-08-16 15:20:18 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2002-08-16 15:20:18 (GMT) |
commit | 7b5a8762c6d5f7915db99e2344d169d14a4fda65 (patch) | |
tree | 4c5294710e7c720afde51e8e7170a39895d17c41 /Source/cmVTKWrapPythonCommand.cxx | |
parent | f7b1a90256a3e7d94cbb58b595eee5190e8958ba (diff) | |
download | CMake-7b5a8762c6d5f7915db99e2344d169d14a4fda65.zip CMake-7b5a8762c6d5f7915db99e2344d169d14a4fda65.tar.gz CMake-7b5a8762c6d5f7915db99e2344d169d14a4fda65.tar.bz2 |
modified how source files store properties
Diffstat (limited to 'Source/cmVTKWrapPythonCommand.cxx')
-rw-r--r-- | Source/cmVTKWrapPythonCommand.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmVTKWrapPythonCommand.cxx b/Source/cmVTKWrapPythonCommand.cxx index 9000689..cae135c 100644 --- a/Source/cmVTKWrapPythonCommand.cxx +++ b/Source/cmVTKWrapPythonCommand.cxx @@ -66,12 +66,12 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string> const& argsIn) cmSourceFile *curr = m_Makefile->GetSource(j->c_str()); // if we should wrap the class - if (!curr || !curr->GetWrapExclude()) + if (!curr || !curr->GetPropertyAsBool("WRAP_EXCLUDE")) { cmSourceFile file; if (curr) { - file.SetIsAnAbstractClass(curr->IsAnAbstractClass()); + file.SetProperty("ABSTRACT",curr->GetProperty("ABSTRACT")); } std::string srcName = cmSystemTools::GetFilenameWithoutExtension(*j); std::string newName = srcName + "Python"; @@ -88,7 +88,7 @@ bool cmVTKWrapPythonCommand::InitialPass(std::vector<std::string> const& argsIn) } cmSourceFile cfile; - cfile.SetIsAnAbstractClass(false); + cfile.SetProperty("ABSTRACT","0"); this->CreateInitFile(res); cfile.SetName(initName.c_str(), m_Makefile->GetCurrentOutputDirectory(), "cxx",false); @@ -125,7 +125,7 @@ void cmVTKWrapPythonCommand::FinalPass() { args.push_back(hints); } - args.push_back((m_WrapClasses[classNum].IsAnAbstractClass() ? "0" : "1")); + args.push_back((m_WrapClasses[classNum].GetPropertyAsBool("ABSTRACT") ? "0" : "1")); args.push_back(res); m_Makefile->AddCustomCommand(m_WrapHeaders[classNum].c_str(), |