mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 13:51:33 -06:00
ENH: now target names can be used in add_custom_command() and
add_custom_target() as COMMAND, and cmake will recognize them and replace them with the actual output path of these executables. Also the dependency will be added automatically. Test included. ENH: moved TraceVSDependencies() to the end of GlobalGenerator::Configure(), so it is done now in one central place Alex
This commit is contained in:
@@ -54,6 +54,7 @@ cmLocalUnixMakefileGenerator3::cmLocalUnixMakefileGenerator3()
|
||||
this->NativeEchoCommand = "@echo ";
|
||||
this->NativeEchoWindows = true;
|
||||
this->MakeCommandEscapeTargetTwice = false;
|
||||
this->IsMakefileGenerator = true;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
@@ -112,7 +113,7 @@ void cmLocalUnixMakefileGenerator3::Generate()
|
||||
if (tg)
|
||||
{
|
||||
this->TargetGenerators.push_back(tg);
|
||||
t->second.TraceVSDependencies(empty, this->Makefile);
|
||||
// t->second.TraceVSDependencies(empty, this->Makefile);
|
||||
tg->WriteRuleFiles();
|
||||
}
|
||||
}
|
||||
@@ -885,7 +886,8 @@ cmLocalUnixMakefileGenerator3
|
||||
{
|
||||
// Build the command line in a single string.
|
||||
const cmCustomCommandLine& commandLine = *cl;
|
||||
std::string cmd = commandLine[0];
|
||||
std::string cmd = GetRealLocation(commandLine[0].c_str(),
|
||||
this->ConfigurationName.c_str());
|
||||
if (cmd.size())
|
||||
{
|
||||
cmSystemTools::ReplaceString(cmd, "/./", "/");
|
||||
|
||||
Reference in New Issue
Block a user