1 /*============================================================================
2 CMake - Cross Platform Makefile Generator
3 Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
5 Distributed under the OSI-approved BSD License (the "License");
6 see accompanying file Copyright.txt for details.
8 This software is distributed WITHOUT ANY WARRANTY; without even the
9 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License for more information.
11 ============================================================================*/
12 #include "cmLinkLibrariesCommand.h"
14 // cmLinkLibrariesCommand
15 bool cmLinkLibrariesCommand
16 ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
22 // add libraries, nothe that there is an optional prefix
23 // of debug and optimized than can be used
24 for(std::vector<std::string>::const_iterator i = args.begin();
32 this->SetError("The \"debug\" argument must be followed by "
36 this->Makefile->AddLinkLibrary(i->c_str(),
39 else if (*i == "optimized")
44 this->SetError("The \"optimized\" argument must be followed by "
48 this->Makefile->AddLinkLibrary(i->c_str(),
53 this->Makefile->AddLinkLibrary(i->c_str());