diff options
author | Brad King <brad.king@kitware.com> | 2015-06-19 13:38:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-06-19 14:29:38 (GMT) |
commit | 0e346427a254024b8eafe52956e8f4ba05d856ed (patch) | |
tree | f06b08f0da74c6088b46d0ac61f511e0321e7f77 /Source/cmQtAutoGenerators.cxx | |
parent | 664156c2314302ad94c684561fdf56c847613de9 (diff) | |
download | CMake-0e346427a254024b8eafe52956e8f4ba05d856ed.zip CMake-0e346427a254024b8eafe52956e8f4ba05d856ed.tar.gz CMake-0e346427a254024b8eafe52956e8f4ba05d856ed.tar.bz2 |
QtAutogen: Always run autogen step even when rcc is enabled (#15608)
In commit v3.2.0-rc1~480^2 (QtAutogen: Regenerate qrc files if their input
changes, 2014-09-17) the "cmake -E cmake_autogen" rule was switched from
always running to running as a custom command with dependencies if rcc
is enabled. This is not correct because automoc always needs to re-run.
Switch back to always running the command.
Diffstat (limited to 'Source/cmQtAutoGenerators.cxx')
-rw-r--r-- | Source/cmQtAutoGenerators.cxx | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/Source/cmQtAutoGenerators.cxx b/Source/cmQtAutoGenerators.cxx index f472ed8..d2f6e36 100644 --- a/Source/cmQtAutoGenerators.cxx +++ b/Source/cmQtAutoGenerators.cxx @@ -466,31 +466,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() |