Notes |
|
(0032544)
|
Peter Kuemmel
|
2013-03-09 03:03
|
|
Thanks for checking again.
I did following steps.
- unziped the cmake binary
- set PATH so "cmake -version" prints "cmake version 2.8.10.20130305-gd559be"
- called in a build dir "cmake -GNinja <source dir>"
- ninja builds 8 files
- opened a generated moc_ file
- touched it
- "ninja -v" builds 2 files: the moc_ and links
This is the correct behavior.
The old and buggy behavior could be reproduced by replacing in build.ninja all "|| moc_" strings with "| moc_",
then ninja builds 6 files when a moc_ is touched. This bug is fixed.
But maybe you found another bug. Could you check again? |
|
|
(0032598)
|
bamiaux
|
2013-03-13 05:28
|
|
I checked again, and you are right, it doesn't rebuild more files than necessary.
I was confused by the fact that all moc files are still mentionned for every cpp object rule.
Are those rules here to ensure every moc is generated before any cpp is compiled ?
It seems to me that a moc should be made dependent only on its header |
|
|
(0032599)
|
Peter Kuemmel
|
2013-03-13 06:22
|
|
Yes, principally the cpp files does not depend on the moc files.
(only when you include the moc file in the cpp file). But this configures
FindQt, and I don't know what the reasons where to add such dependency. |
|
|
(0033994)
|
Robert Maynard
|
2013-10-07 10:03
|
|
Closing resolved issues that have not been updated in more than 4 months. |
|