mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-22 06:09:14 -05:00
ENH: change InitialPass to take a const reference to the argument string, to avoid changes to the file cache
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user