|
|
@@ -439,6 +439,9 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
|
|
|
this->ListQt4RccInputs(sf, depends);
|
|
|
}
|
|
|
#if defined(_WIN32) && !defined(__CYGWIN__)
|
|
|
+ // Cannot use PRE_BUILD because the resource files themselves
|
|
|
+ // may not be sources within the target so VS may not know the
|
|
|
+ // target needs to re-build at all.
|
|
|
usePRE_BUILD = false;
|
|
|
#endif
|
|
|
}
|
|
|
@@ -465,31 +468,11 @@ bool cmQtAutoGenerators::InitializeAutogenTarget(cmTarget* target)
|
|
|
else
|
|
|
#endif
|
|
|
{
|
|
|
- cmTarget* autogenTarget = 0;
|
|
|
- if (!rcc_output.empty() && !isNinja)
|
|
|
- {
|
|
|
- std::vector<std::string> no_byproducts;
|
|
|
- makefile->AddCustomCommandToOutput(rcc_output, no_byproducts,
|
|
|
- depends, "",
|
|
|
- commandLines, 0,
|
|
|
- workingDirectory.c_str(),
|
|
|
- false, false);
|
|
|
-
|
|
|
- cmCustomCommandLines no_commands;
|
|
|
- autogenTarget = makefile->AddUtilityCommand(
|
|
|
- autogenTargetName, true,
|
|
|
- workingDirectory.c_str(), rcc_output,
|
|
|
- no_commands, false, autogenComment.c_str());
|
|
|
-
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- autogenTarget = makefile->AddUtilityCommand(
|
|
|
+ cmTarget* autogenTarget = makefile->AddUtilityCommand(
|
|
|
autogenTargetName, true,
|
|
|
workingDirectory.c_str(),
|
|
|
/*byproducts=*/rcc_output, depends,
|
|
|
commandLines, false, autogenComment.c_str());
|
|
|
- }
|
|
|
|
|
|
// Set target folder
|
|
|
const char* autogenFolder = makefile->GetState()
|