https://github.com/Kitware/CMake
Revision 37473374f969f476a7fec87cdc3465c9ab8f99ef authored by Brad King on 26 January 2015, 15:28:28 UTC, committed by CMake Topic Stage on 26 January 2015, 15:28:28 UTC
482c8475 KWSys Directory: Check opendir return value before using it (#15367)
Tip revision: 37473374f969f476a7fec87cdc3465c9ab8f99ef authored by Brad King on 26 January 2015, 15:28:28 UTC
Merge topic 'backport-kwsys-directory-check-opendir'
Merge topic 'backport-kwsys-directory-check-opendir'
Tip revision: 3747337
cmAddCompileOptionsCommand.cxx
/*============================================================================
CMake - Cross Platform Makefile Generator
Copyright 2013 Stephen Kelly <steveire@gmail.com>
Distributed under the OSI-approved BSD License (the "License");
see accompanying file Copyright.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even the
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License for more information.
============================================================================*/
#include "cmAddCompileOptionsCommand.h"
bool cmAddCompileOptionsCommand
::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &)
{
if(args.size() < 1 )
{
return true;
}
for(std::vector<std::string>::const_iterator i = args.begin();
i != args.end(); ++i)
{
this->Makefile->AddCompileOption(i->c_str());
}
return true;
}
Computing file changes ...