mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-21 22:50:26 -06:00
ENH: Updated implementation of custom commands. Multiple command lines are now supported effectively allowing entire scripts to be written. Also removed extra variable expansions and cleaned up passing of commands through to the generators. The command and individual arguments are now kept separate all the way until the generator writes them out. This cleans up alot of escaping issues.
This commit is contained in:
@@ -42,9 +42,11 @@ bool cmIncludeExternalMSProjectCommand::InitialPass(std::vector<std::string> con
|
||||
std::string utility_name("INCLUDE_EXTERNAL_MSPROJECT");
|
||||
utility_name += "_";
|
||||
utility_name += args[0];
|
||||
|
||||
m_Makefile->AddUtilityCommand(utility_name.c_str(), args[0].c_str(), args[1].c_str(),
|
||||
true, depends);
|
||||
|
||||
const char* no_output = 0;
|
||||
m_Makefile->AddUtilityCommand(utility_name.c_str(), true,
|
||||
no_output, depends,
|
||||
args[0].c_str(), args[1].c_str());
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user