mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
ENH: Moved ExpandListVariables out of individual commands. Argument evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
This commit is contained in:
@@ -17,15 +17,13 @@
|
||||
#include "cmAddDefinitionsCommand.h"
|
||||
|
||||
// cmAddDefinitionsCommand
|
||||
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& argsIn)
|
||||
bool cmAddDefinitionsCommand::InitialPass(std::vector<std::string> const& args)
|
||||
{
|
||||
// it is OK to have no arguments
|
||||
if(argsIn.size() < 1 )
|
||||
if(args.size() < 1 )
|
||||
{
|
||||
return true;
|
||||
}
|
||||
std::vector<std::string> args;
|
||||
cmSystemTools::ExpandListArguments(argsIn, args);
|
||||
|
||||
for(std::vector<std::string>::const_iterator i = args.begin();
|
||||
i != args.end(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user