/*========================================================================= Program: CMake - Cross-Platform Makefile Generator Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notices for more information. =========================================================================*/ #include "cmLoadCacheCommand.h" // cmLoadcacheCommand bool cmLoadCacheCommand::InitialPass(std::vector const& argsIn) { if (argsIn.size()< 1) { this->SetError("called with wrong number of arguments."); } std::vector args; cmSystemTools::ExpandListArguments(argsIn, args); // Cache entries to be excluded from the import list. // If this set is empty, all cache entries are brought in // and they can not be overridden. bool excludeFiles=false; unsigned int i; std::set excludes; for(i=0; i includes; for(i=0; iGetCacheManager()->LoadCache(args[i].c_str(), false, excludes, includes); } return true; }