1. 24 Jan, 2018 1 commit
  2. 18 Jan, 2018 1 commit
  3. 10 Jan, 2018 2 commits
    • Brad King's avatar
      ecfc729a
    • Sebastian Holtermann's avatar
      Autogen: Ignore not existing source files in cmMakefile · d592bfc9
      Sebastian Holtermann authored
      Until CMake 3.10 a list of source files that had the AUTOUIC_OPTIONS property
      populated was kept in `cmMakefile::QtUiFilesWithOptions`.  In the process to
      remove all AUTOUIC related code from `cmMakefile` for CMake 3.10, the pre
      filtered list was replaced by a loop in `cmQtAutoGeneratorInitializer` over
      all source files in the `cmMakefile`.  This loop introduced the problem that
      file paths were computed for source files that weren't in the target's sources
      and that might not even have existed.  If the path for an unused and not
      existing file was computed a `cmake::FATAL_ERROR` with the error message
      "Cannot find source file:" was thrown nevertheless.
      This caused some projects to fail in CMake 3.10.
      
      This patch adds a test for path errors in the loops in
      `cmQtAutoGeneratorInitializer` that iterate over all source files in a
      `cmMakefile`. If a path error appears, the file is silently ignored.
      If the file is part of the target's sources, the path error will still be
      caught in the loop over all the target's sources.
      
      This is the fix for CMake 3.10.1.
      d592bfc9
  4. 09 Jan, 2018 4 commits
  5. 20 Dec, 2017 2 commits
  6. 14 Dec, 2017 2 commits
  7. 13 Dec, 2017 1 commit
  8. 12 Dec, 2017 6 commits
  9. 08 Dec, 2017 1 commit
  10. 07 Dec, 2017 5 commits
  11. 06 Dec, 2017 4 commits
    • Brad King's avatar
      Merge branch 'backport-revert-server-target-backtraces' into release-3.10 · 05f86af7
      Brad King authored
      Merge-request: !1564
      05f86af7
    • Brad King's avatar
      server: Revert "Report backtraces in codemodel response" · 8b2736c7
      Brad King authored
      The backtrace information is very repetitive and hugely increases the
      size of the codemodel object.  We need to remove it until an alternative
      representation can be developed.  Revert commit v3.10.0-rc1~393^2
      (server: Report backtraces in codemodel response, 2017-06-20), except
      for the protocol version number (because it indicates other new things).
      
      Unfortunately this is incompatible with clients that expect the
      "crossReferences" field in targets.  However, the regression in memory
      usage is quite serious, especially on large projects, and therefore
      breaks even older clients that do not use backtraces.  Since the
      "crossReferences" field was only provided by one release (3.10.0), it is
      simplest to revert it outright for 3.10.1.
      
      Fixes: #17502
      8b2736c7
    • Matthew Woehlke's avatar
      GoogleTest: Add test for missing test executable · 935848a8
      Matthew Woehlke authored
      Add a test to verify expected behavior when a test executable on which
      gtest_discover_tests is invoked was not built. (The test for the newly
      added timeout conveniently sets up this situation, so this new test was
      almost trivial to add.)
      935848a8
    • Matthew Woehlke's avatar
      GoogleTest: Add timeout to discovery · 29731d89
      Matthew Woehlke authored
      Add a TIMEOUT option to gtest_discover_tests. This provides a
      work-around in case a test goes out to lunch, rather than causing the
      build to simply hang. (Although this is still a problem with the user's
      project, hanging the build is not cool, especially in the case of
      automatically running CI builds. It is much preferred that the build
      should actively fail in this case, and it is trivially easy for us to
      implement that.)
      29731d89
  12. 05 Dec, 2017 4 commits
  13. 01 Dec, 2017 2 commits
    • Brad King's avatar
      Merge branch 'cpack-pkg-fix' into release-3.10 · 64713d4c
      Brad King authored
      Merge-request: !1547
      64713d4c
    • Alexander Wittig's avatar
      CPack: Fix macOS PKG component dependency information · f25d87db
      Alexander Wittig authored
      Refactoring in commit v3.7.0-rc1~523^2 (CPack/PackageMaker: port to
      cmXMLWriter, 2016-06-08) accidentally broke `distribution.dist`
      generation when there are dependencies between components and the pkg
      (or the derived productbuild) generator are used.  The resulting
      package cannot be installed and instead the Apple Installer app
      shows a "Javascript error" message.
      
      The problem is that a `std::ostringstream` is constructed with some
      content, but the stream pointer still points to the beginning of the
      stream, so subsequent writes overwrite the initial content instead of
      appending.
      f25d87db
  14. 30 Nov, 2017 3 commits
  15. 28 Nov, 2017 2 commits
    • Brad King's avatar
      Merge branch 'clang-cl-fix' into release-3.10 · 79ad921a
      Brad King authored
      Merge-request: !1522
      79ad921a
    • Ismail Donmez's avatar
      Clang: Do not mistake clang-cl 6.0 for GNU-like clang · f969f1a9
      Ismail Donmez authored
      The check added by commit v3.10.0-rc2~2^2 (Clang: Diagnose unsupported
      GNU-like clang targeting MSVC ABI, 2017-10-10) is incorrectly detecting
      clang-cl 6.0 as GNU-like.  Currently cmake is testing if the clang
      compiler accepts `--version` to see if it accepts GNU style flags.
      However, with the latest llvm snapshot this also works for clang-cl:
      
          > clang-cl --version
          clang version 6.0.0 (trunk)
          Target: x86_64-pc-windows-msvc
          Thread model: posix
          InstalledDir: C:\Program Files\LLVM\bin
      
      So instead we should use the `/?` flag which fails with clang but
      works with clang-cl:
      
          > clang-cl /? &> /dev/null; echo $?
          0
          > clang /? &> /dev/null; echo $?
          1
      
      Fixes: #17518
      f969f1a9