Commit baa28efd authored by Bill Hoffman's avatar Bill Hoffman

ENH: change InitialPass to take a const reference to the argument string, to...

ENH: change InitialPass to take a const reference to the argument string, to avoid changes to the file cache
parent b9d56e84
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmAbstractFilesCommand.h"
// cmAbstractFilesCommand
bool cmAbstractFilesCommand::InitialPass(std::vector<std::string>& args)
bool cmAbstractFilesCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......@@ -49,7 +49,7 @@ bool cmAbstractFilesCommand::InitialPass(std::vector<std::string>& args)
return false;
}
cmMakefile::SourceMap &Classes = m_Makefile->GetSources();
for(std::vector<std::string>::iterator j = args.begin();
for(std::vector<std::string>::const_iterator j = args.begin();
j != args.end(); ++j)
{
for(cmMakefile::SourceMap::iterator l = Classes.begin();
......
......@@ -56,7 +56,7 @@ public:
* This is called when the command is first encountered in
* the input file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -41,8 +41,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmAddCustomTargetCommand.h"
// cmAddCustomTargetCommand
bool cmAddCustomTargetCommand::InitialPass(std::vector<std::string>& args)
bool cmAddCustomTargetCommand::InitialPass(std::vector<std::string> const& argsIn)
{
std::vector<std::string> args = argsIn;
bool all = false;
if(args.size() < 2 )
......
......@@ -66,7 +66,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -41,14 +41,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmAddDefinitionsCommand.h"
// cmAddDefinitionsCommand
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string>& args)
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
return false;
}
for(std::vector<std::string>::iterator i = args.begin();
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
std::string str = *i;
......
......@@ -65,7 +65,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmCacheManager.h"
// cmDependenciesCommand
bool cmAddDependenciesCommand::InitialPass(std::vector<std::string>& args)
bool cmAddDependenciesCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2 )
{
......@@ -53,7 +53,7 @@ bool cmAddDependenciesCommand::InitialPass(std::vector<std::string>& args)
cmTargets &tgts = m_Makefile->GetTargets();
if (tgts.find(args[0]) != tgts.end())
{
std::vector<std::string>::iterator s = args.begin();
std::vector<std::string>::const_iterator s = args.begin();
++s;
for (; s != args.end(); ++s)
{
......
......@@ -64,7 +64,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmCacheManager.h"
// cmExecutableCommand
bool cmAddExecutableCommand::InitialPass(std::vector<std::string>& args)
bool cmAddExecutableCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2 )
{
......@@ -50,7 +50,7 @@ bool cmAddExecutableCommand::InitialPass(std::vector<std::string>& args)
return false;
}
std::vector<std::string>::iterator s = args.begin();
std::vector<std::string>::const_iterator s = args.begin();
++s;
if (*s == "WIN32")
{
......
......@@ -65,7 +65,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmCacheManager.h"
// cmLibraryCommand
bool cmAddLibraryCommand::InitialPass(std::vector<std::string>& args)
bool cmAddLibraryCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......@@ -54,7 +54,7 @@ bool cmAddLibraryCommand::InitialPass(std::vector<std::string>& args)
// otherwise it defaults to static library.
int shared = !cmSystemTools::IsOff(m_Makefile->GetDefinition("BUILD_SHARED_LIBS"));
std::vector<std::string>::iterator s = args.begin();
std::vector<std::string>::const_iterator s = args.begin();
++s;
// If the second argument is "SHARED" or "STATIC", then it controls
......
......@@ -65,7 +65,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmCacheManager.h"
// cmExecutableCommand
bool cmAddTestCommand::InitialPass(std::vector<std::string>& args)
bool cmAddTestCommand::InitialPass(std::vector<std::string> const& args)
{
// First argument is the name of the test
// Second argument is the name of the executable to run (a target or external
......
......@@ -64,7 +64,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This is called at the end after all the information
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmDirectory.h"
// cmAuxSourceDirectoryCommand
bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string>& args)
bool cmAuxSourceDirectoryCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2 || args.size() > 2)
{
......
......@@ -68,7 +68,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmBuildCommand.h"
// cmBuildCommand
bool cmBuildCommand::InitialPass(std::vector<std::string>& args)
bool cmBuildCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2 )
{
......@@ -56,7 +56,7 @@ bool cmBuildCommand::InitialPass(std::vector<std::string>& args)
return true;
}
std::string makecommand;
std::string& makeprogram = args[1];
std::string makeprogram = args[1];
m_Makefile->ExpandVariablesInString(makeprogram);
if(makeprogram.find("msdev") != std::string::npos ||
makeprogram.find("MSDEV") != std::string::npos )
......
......@@ -64,7 +64,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmBuildNameCommand.h"
// cmBuildNameCommand
bool cmBuildNameCommand::InitialPass(std::vector<std::string>& args)
bool cmBuildNameCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......
......@@ -64,7 +64,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -43,14 +43,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmTarget.h"
// cmCableClassSetCommand
bool cmCableClassSetCommand::InitialPass(std::vector<std::string>& args)
bool cmCableClassSetCommand::InitialPass(std::vector<std::string> const& argsIn)
{
if(args.size() < 2)
if(argsIn.size() < 2)
{
this->SetError("called with incorrect number of arguments");
return false;
}
std::vector<std::string> args = argsIn;
// First, we want to expand all CMAKE variables in all arguments.
for(std::vector<std::string>::iterator a = args.begin();
a != args.end(); ++a)
......
......@@ -66,7 +66,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -118,13 +118,14 @@ cmCableWrapTclCommand::~cmCableWrapTclCommand()
// cmCableWrapTclCommand
bool cmCableWrapTclCommand::InitialPass(std::vector<std::string>& args)
bool cmCableWrapTclCommand::InitialPass(std::vector<std::string> const& argsIn)
{
if(args.size() < 2)
if(argsIn.size() < 2)
{
this->SetError("called with incorrect number of arguments");
return false;
}
std::vector<std::string> args = argsIn;
// First, we want to expand all CMAKE variables in all arguments.
for(std::vector<std::string>::iterator a = args.begin();
......
......@@ -68,7 +68,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -78,7 +78,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args) = 0;
virtual bool InitialPass(std::vector<std::string> const& args) = 0;
/**
* This is called at the end after all the information
......
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmConfigureFileCommand.h"
// cmConfigureFileCommand
bool cmConfigureFileCommand::InitialPass(std::vector<std::string>& args)
bool cmConfigureFileCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2 )
{
......
......@@ -56,7 +56,7 @@ public:
* This is called when the command is first encountered in
* the input file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -50,7 +50,7 @@ cmConfigureGccXmlCommand::~cmConfigureGccXmlCommand()
}
// cmConfigureGccXmlCommand
bool cmConfigureGccXmlCommand::InitialPass(std::vector<std::string>& args)
bool cmConfigureGccXmlCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() != 2)
{
......
......@@ -65,7 +65,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmElseCommand.h"
#include "cmCacheManager.h"
bool cmElseCommand::InitialPass(std::vector<std::string>& args)
bool cmElseCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......@@ -109,7 +109,7 @@ bool cmElseCommand::InitialPass(std::vector<std::string>& args)
// if we created a function blocker then set its args
if (f)
{
for(std::vector<std::string>::iterator j = args.begin();
for(std::vector<std::string>::const_iterator j = args.begin();
j != args.end(); ++j)
{
f->m_Args.push_back(*j);
......
......@@ -63,7 +63,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -76,7 +76,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args) {
virtual bool InitialPass(std::vector<std::string> const& args) {
return true;};
/**
......
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmEndForEachCommand.h"
#include "cmCacheManager.h"
bool cmEndForEachCommand::InitialPass(std::vector<std::string>& args)
bool cmEndForEachCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......
......@@ -64,7 +64,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -41,7 +41,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmEndIfCommand.h"
#include "cmCacheManager.h"
bool cmEndIfCommand::InitialPass(std::vector<std::string>& args)
bool cmEndIfCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......
......@@ -63,7 +63,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -42,8 +42,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmSystemTools.h"
// cmExecProgramCommand
bool cmExecProgramCommand::InitialPass(std::vector<std::string>& args)
bool cmExecProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
{
std::vector<std::string> args = argsIn;
if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
......
......@@ -66,7 +66,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -45,7 +45,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// cmFindFileCommand
bool cmFindFileCommand::InitialPass(std::vector<std::string>& args)
bool cmFindFileCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2)
{
......@@ -53,7 +53,7 @@ bool cmFindFileCommand::InitialPass(std::vector<std::string>& args)
return false;
}
std::vector<std::string>::iterator i = args.begin();
std::vector<std::string>::const_iterator i = args.begin();
// Use the first argument as the name of something to be defined
const char* define = (*i).c_str();
i++; // move iterator to next arg
......
......@@ -67,7 +67,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -42,8 +42,9 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmCacheManager.h"
// cmFindLibraryCommand
bool cmFindLibraryCommand::InitialPass(std::vector<std::string>& args)
bool cmFindLibraryCommand::InitialPass(std::vector<std::string> const& argsIn)
{
std::vector<std::string> args = argsIn;
if(args.size() < 2)
{
this->SetError("called with incorrect number of arguments");
......
......@@ -67,7 +67,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmCacheManager.h"
// cmFindPathCommand
bool cmFindPathCommand::InitialPass(std::vector<std::string>& args)
bool cmFindPathCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2)
{
......
......@@ -42,7 +42,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -45,13 +45,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// cmFindProgramCommand
bool cmFindProgramCommand::InitialPass(std::vector<std::string>& args)
bool cmFindProgramCommand::InitialPass(std::vector<std::string> const& argsIn)
{
if(args.size() < 2 )
if(argsIn.size() < 2 )
{
this->SetError("called with incorrect number of arguments");
return false;
}
std::vector<std::string> args = argsIn;
std::vector<std::string>::iterator i = args.begin();
// Use the first argument as the name of something to be defined
const char* define = (*i).c_str();
......
......@@ -67,7 +67,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -109,7 +109,7 @@ ScopeEnded(cmMakefile &mf)
mf.GetCurrentDirectory());
}
bool cmForEachCommand::InitialPass(std::vector<std::string>& args)
bool cmForEachCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 2 )
{
......@@ -119,7 +119,7 @@ bool cmForEachCommand::InitialPass(std::vector<std::string>& args)
// create a function blocker
cmForEachFunctionBlocker *f = new cmForEachFunctionBlocker();
for(std::vector<std::string>::iterator j = args.begin();
for(std::vector<std::string>::const_iterator j = args.begin();
j != args.end(); ++j)
{
f->m_Args.push_back(*j);
......
......@@ -88,7 +88,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -42,7 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmSystemTools.h"
// cmGetFilenameComponentCommand
bool cmGetFilenameComponentCommand::InitialPass(std::vector<std::string>& args)
bool cmGetFilenameComponentCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 3)
{
......
......@@ -65,7 +65,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -69,7 +69,7 @@ ScopeEnded(cmMakefile &mf)
mf.GetCurrentDirectory());
}
bool cmIfCommand::InitialPass(std::vector<std::string>& args)
bool cmIfCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
......@@ -137,7 +137,7 @@ bool cmIfCommand::InitialPass(std::vector<std::string>& args)
// if we created a function blocker then set its args
if (f)
{
for(std::vector<std::string>::iterator j = args.begin();
for(std::vector<std::string>::const_iterator j = args.begin();
j != args.end(); ++j)
{
f->m_Args.push_back(*j);
......
......@@ -86,7 +86,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* The name of the command as specified in CMakeList.txt.
......
......@@ -17,14 +17,14 @@
// cmIncludeCommand
bool cmIncludeCommand::InitialPass(std::vector<std::string>& args)
bool cmIncludeCommand::InitialPass(std::vector<std::string> const& argsIn)
{
if (args.size()< 1 || args.size() > 2)
if (argsIn.size()< 1 || argsIn.size() > 2)
{
this->SetError("called with wrong number of arguments. "
"Include only takes one file.");
}
std::vector<std::string> args = argsIn;
m_Makefile->ExpandVariablesInString( args[0]);
bool exists = cmSystemTools::FileExists(args[0].c_str());
if(args.size() == 2 && args[1] == "OPTIONAL" && !exists)
......
......@@ -42,7 +42,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(std::vector<std::string>& args);
virtual bool InitialPass(std::vector<std::string> const& args);
/**
* This determines if the command gets propagated down
......
......@@ -41,14 +41,14 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "cmIncludeDirectoryCommand.h"
#include "cmCacheManager.h"
// cmIncludeDirectoryCommand
bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string>& args)
bool cmIncludeDirectoryCommand::InitialPass(std::vector<std::string> const& args)
{
if(args.size() < 1 )
{
this->SetError("called with incorrect number of arguments");
return false;
}
for(std::vector<std::string>::iterator i = args.begin();
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
m_Makefile->AddIncludeDirectory((*i).c_str());
......
......@@ -65,7 +65,7 @@ public:
* This is called when the command is first encountered in
* the CMakeLists.txt file.
*/
virtual bool InitialPass(