mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Fix for bug #11274, VS10 custom commands that create files in INTDIR fix.
This commit is contained in:
parent
da5c8953b7
commit
3d68dd230d
@ -894,6 +894,14 @@ cmMakefile::AddCustomCommandToOutput(const std::vector<std::string>& outputs,
|
||||
// Construct a rule file associated with the first output produced.
|
||||
std::string outName = outputs[0];
|
||||
outName += ".rule";
|
||||
const char* dir =
|
||||
this->LocalGenerator->GetGlobalGenerator()->
|
||||
GetCMakeCFGInitDirectory();
|
||||
if(dir && dir[0] == '$')
|
||||
{
|
||||
cmSystemTools::ReplaceString(outName, dir,
|
||||
cmake::GetCMakeFilesDirectory());
|
||||
}
|
||||
// Check if the rule file already exists.
|
||||
file = this->GetSource(outName.c_str());
|
||||
if(file && file->GetCustomCommand() && !replace)
|
||||
|
Loading…
Reference in New Issue
Block a user