ENH: mark some vars as advanced (and resort the list)
[cmake.git] / Source / cmIncludeExternalMSProjectCommand.cxx
blob2bbae8ffcc8e979c2a8658e8119ae7b6accf5ff6
1 /*=========================================================================
3 Program: Insight Segmentation & Registration Toolkit
4 Module: $RCSfile: cmIncludeExternalMSProjectCommand.cxx,v $
5 Language: C++
6 Date: $Date: 2002-03-05 23:41:22 $
7 Version: $Revision: 1.6 $
9 Copyright (c) 2002 Insight Consortium. All rights reserved.
10 See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm 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 "cmIncludeExternalMSProjectCommand.h"
19 // cmIncludeExternalMSProjectCommand
20 bool cmIncludeExternalMSProjectCommand::InitialPass(std::vector<std::string> const& args)
22 if(args.size() < 2)
24 this->SetError("INCLUDE_EXTERNAL_MSPROJECT called with incorrect number of arguments");
25 return false;
29 if(m_Makefile->GetDefinition("WIN32")) {
31 std::string location = args[1];
33 std::vector<std::string> name_and_location;
34 name_and_location.push_back(args[0]);
35 name_and_location.push_back(location);
37 std::vector<std::string> depends;
38 if (args.size() > 2) {
39 for (unsigned int i=2; i<args.size(); ++i) {
40 depends.push_back(args[i]);
44 std::string utility_name("INCLUDE_EXTERNAL_MSPROJECT");
45 utility_name += "_";
46 utility_name += args[0];
48 m_Makefile->AddUtilityCommand(utility_name.c_str(), "echo", "\"Include external project\"",
49 false, name_and_location, depends);
52 return true;