ENH: put the 64 bit paths first
[cmake.git] / Source / CTest / cmCTestRunScriptCommand.cxx
blob925627fb60da656ec04cd584de348d072b74e4e8
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCTestRunScriptCommand.cxx,v $
5 Language: C++
6 Date: $Date: 2008-01-23 15:28:01 $
7 Version: $Revision: 1.7 $
9 Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
17 #include "cmCTestRunScriptCommand.h"
19 #include "cmCTestScriptHandler.h"
21 bool cmCTestRunScriptCommand
22 ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
24 if(args.size() < 1 )
26 this->CTestScriptHandler->RunCurrentScript();
27 return true;
30 bool np = false;
31 unsigned int i = 0;
32 if (args[i] == "NEW_PROCESS")
34 np = true;
35 i++;
37 // run each script
38 for (; i < args.size(); ++i)
40 cmCTestScriptHandler::RunScript(this->CTest, args[i].c_str(), !np);
42 return true;