Skip to content
Snippets Groups Projects
  1. Aug 10, 2020
    • Jörg Bornemann's avatar
      Autogen: Turn off moc path prefix generation by default · 4c33b305
      Jörg Bornemann authored and Brad King's avatar Brad King committed
      Change the default value of `CMAKE_AUTOMOC_PATH_PREFIX` to `OFF` to
      restore compatibility with behavior of CMake 3.15 and below.
      
      C++ source files that are generated by Qt's meta object compiler (moc)
      include the header file that was passed as input argument to moc. This
      is usually a path relative to the source directory, for example
      
          #include "../../source/dir/myobject.h"
      
      That is problematic for reproducible builds as described in #18815.
      To cope with that, the target property AUTOMOC_PATH_PREFIX was
      introduced in CMake 3.16 by commit d018d27c (Autogen: Add moc path
      prefix generation (AUTOMOC_PATH_PREFIX), 2019-09-13, v3.16.0-rc1~94^2~4).
      The property is default-initialized from the variable
      `CMAKE_AUTOMOC_PATH_PREFIX`, which defaults to `ON`.
      
      If this property is ON, and myobject.h is located in an include
      directory of the target, moc-generated C++ files include the file
      without the "path prefix":
      
          #include "myobject.h"
      
      This behavior, however, can break projects that have equally named
      header files in different include directories.  As "not breaking
      existing projects" trumps "have reproducible builds by default" we
      change the default of `CMAKE_AUTOMOC_PATH_PREFIX` to `OFF`.
      
      Also, it is now possible to pass `-DCMAKE_AUTOMOC_PATH_PREFIX=ON` on the
      CMake command line.  Before, it was overridden in `CMakeGenericSystem`.
      
      Fixes: #20598
      Issue: #18815
      4c33b305
  2. Dec 18, 2019
    • Brad King's avatar
      Autogen: Revert processing of .hh files for compatibility · 7fa7f552
      Brad King authored
      Since commit 4a915453 (Autogen: Use cmake::IsHeader/SourceExtension
      for file type detection, 2019-07-02, v3.16.0-rc1~470^2~4) we process
      `.hh` files with `AUTOMOC`.  However, this change can break existing
      projects that do not expect the behavior.  Revert it for now.  It can
      be restored later via a policy.
      
      Fixes: #20101
      7fa7f552
  3. Oct 01, 2019
  4. Sep 18, 2019
  5. Jul 04, 2019
  6. Jul 01, 2019
  7. Apr 15, 2019
    • Sebastian Holtermann's avatar
      Autogen: Add ManySources test · 58f04b6e
      Sebastian Holtermann authored
      The QtAutogen/ManySources test generates a number of source, header, .ui and
      .qrc files that get AUTOMOC, AUTOUIC and AUTORCC processed.  This stresses the
      concurrency framework in `cmQtAutoMocUic` and should reveal any issues
      with that.
      58f04b6e
  8. Apr 10, 2019
  9. Feb 15, 2019
  10. Feb 13, 2019
  11. Feb 05, 2019
  12. Jan 28, 2019
  13. Dec 07, 2018
  14. Nov 28, 2018
  15. Nov 14, 2018
  16. Nov 11, 2018
  17. Nov 05, 2018
  18. Nov 03, 2018
  19. Oct 03, 2018
    • luz.paz's avatar
      Fix misc. typos · 6b4c5a03
      luz.paz authored and Brad King's avatar Brad King committed
      Found via `codespell -q 3 -I ../cmake-whitelist.txt --skip="./Utilities"`
      where the whitelist consists of
      
      ```
      aci
      ans
      behaviour
      buil
      convertor
      dum
      earch
      ect
      emmited
      emmitted
      helpfull
      iff
      isnt
      ith
      lowercased
      mose
      nd
      nknown
      nto
      objext
      ot
      pathes
      pevents
      splitted
      substract
      superceded
      supercedes
      te
      tim
      todays
      uint
      upto
      whitespaces
      ```
      6b4c5a03
  20. Aug 09, 2018
  21. Aug 07, 2018
    • Sebastian Holtermann's avatar
      Autogen: Check if we can run the MocOsMacros test · e7fb85d0
      Sebastian Holtermann authored
      The MocOsMacros test requires moc to support moc_predefs.h
      on some platforms (e.g. Mac). moc supports moc_predefs.h
      inclusion since Qt 5.8, therefore run the MocOsMacros only if
      Qt >= 5.8 and if CMAKE_CXX_COMPILER_PREDEFINES_COMMAND is
      defined.
      
      Fixes #18245
      e7fb85d0
  22. Jul 30, 2018
  23. Jun 21, 2018
  24. Jun 01, 2018
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format-6.0 · d7204e64
      Kitware Robot authored and Brad King's avatar Brad King committed
      Run the `clang-format.bash` script to update all our C and C++ code to a
      new style defined by `.clang-format`.  Use `clang-format` version 6.0.
      
      * If you reached this commit for a line in `git blame`, re-run the blame
        operation starting at the parent of this commit to see older history
        for the content.
      
      * See the parent commit for instructions to rebase a change across this
        style transition commit.
      d7204e64
  25. May 30, 2018
  26. May 16, 2018
  27. Apr 22, 2018
  28. Feb 15, 2018
  29. Jan 19, 2018
  30. Jan 18, 2018
  31. Jan 17, 2018
Loading