Skip to content
Snippets Groups Projects
  1. Apr 28, 2021
  2. Apr 23, 2021
  3. Apr 17, 2021
  4. Apr 14, 2021
  5. Apr 05, 2021
    • Craig Scott's avatar
      Apple: Set CMAKE_SHARED_LIBRARY_RUNTIME_C_FLAG on non-macOS too · 4aed96e2
      Craig Scott authored
      Since CMake 3.19, we no longer support macOS SDKs older than 10.5,
      which corresponds to Xcode 3. Supporting older Xcode versions for
      device platforms is also not realistic. We therefore expect the -rpath
      linker option should always be supported now.
      
      When targeting iOS, tvOS or watchOS, the previous disabling of -rpath
      support meant that the install_name_dir of shared libraries and
      frameworks was unable to use @rpath. This resulted in embedding
      absolute paths for their install_name. When they were embedded in an
      app bundle, this would cause the app to fail at runtime. By enabling the
      -rpath linker option, the default install_name_dir is now @rpath for these platforms, which results in binaries that do work at runtime.
      
      Fixes: #20036
      4aed96e2
    • Alexander Neumann's avatar
      Help: Add Q_NAMESPACE_EXPORT to CMAKE_AUTOMOC_MACRO_NAMES default values · 3538f1c6
      Alexander Neumann authored and Brad King's avatar Brad King committed
      This was accidentally left out of commit 426941c4 (Autogen: Recognize
      the new Q_NAMESPACE_EXPORT macro in AUTOMOC, 2020-02-26,
      v3.17.0-rc2~3^2).
      3538f1c6
  6. Apr 02, 2021
    • Brad King's avatar
      Help: Document in add_library how to import libraries with SONAME · 4d6e8995
      Brad King authored
      When using `add_library` to create an `IMPORTED` library target, there
      are a few target properties that are essential to correctly tell CMake
      about the library file.  We already cover `IMPORTED_LOCATION` and
      `IMPORTED_IMPLIB`.  Add `IMPORTED_SONAME` and `IMPORTED_NO_SONAME`,
      which are important in certain cases.
      
      Fixes: #22016
      4d6e8995
  7. Apr 01, 2021
  8. Mar 26, 2021
    • Craig Scott's avatar
      Help: Clarify permission-related command options · 769ff054
      Craig Scott authored
      The previous docs did not make clear that at most only one of the three
      permissions-related options can be given for configure_file() or
      file(GENERATE) and that USE_SOURCE_PERMISSIONS is already the
      default behavior for these commands.
      
      Use consistent wording to refer to the input and output files for
      configure_file().
      
      Add missing "versionadded" directives on some of these keywords.
      
      Use the consistent wording and keyword ordering between the
      configure_file(), file(GENERATE) and file(COPY) commands.
      769ff054
    • Brad King's avatar
      FindIntl: Fix detection of intl built in to C library · e34d64c0
      Brad King authored
      Since commit c30d06b7 (FindIntl: Add imported target, 2020-10-06,
      v3.20.0-rc1~687^2) we use `check_symbol_exists` to check whether the
      `intl` library is built in to the C library.  On some platforms the
      tested symbols are provided as macros so the check passes without
      linking any symbol.  Instead, check whether a sample source file both
      compiles and links.
      
      Fixes: #21979
      e34d64c0
  9. Mar 25, 2021
  10. Mar 24, 2021
  11. Mar 22, 2021
  12. Mar 18, 2021
  13. Mar 12, 2021
    • Brad King's avatar
      VS: Accept and translate '-T version=' values with three components · 30c83542
      Brad King authored
      The VS 16.8 and VS 16.9 toolset versions differ only in their third
      component.  The `vcvarsall` option `-vcvars_ver=` accepts a three
      component version, so accept this format for VS toolset selection too.
      
      Issue: #21922
      30c83542
    • Brad King's avatar
      VS: Fix '-T version=14.28' under VS 16.9 · 58a50a3a
      Brad King authored
      CMake accepts the toolset version that is default in the current VS
      version by matching the name later VS versions will use for the SxS
      props files.  It predicts the future name based on the first two
      components of the current VS version's default toolset.  However, this
      heuristic breaks naming the VS 16.8 toolset version 14.28 under VS 16.9
      because the latter's default toolset version is 14.28.29910, which did
      not increment the second version component (unprecedented in VS).
      
      Fix this by always using the requested version's SxS props file when it
      exists, even if it matches the first two components of the current VS
      version's default toolset.  Also add a special case for the name VS
      16.10 will use for VS 16.9's default toolset, so that it can be used
      with VS 16.9 too.
      
      Fixes: #21922
      58a50a3a
  14. Mar 09, 2021
    • Craig Scott's avatar
      Revert ExternalProject and FetchContent refactoring · 57d442e1
      Craig Scott authored
      Refactoring of the ExternalProject and FetchContent modules moved
      the commands into CMake scripts. This broke custom commands that
      used shell redirection or special build tool variables of the form
      $(MakeVar). Undo the sequence of commits that performed this
      refactoring and follow-up fixes associated with it.
      
      The following commits are reverted by this change:
      
      4f3d1abb (ExternalProject: Refactor pre-configure steps to support
      no-target uses, 2021-02-05)
      
      17e5516e (FetchContent: Invoke steps directly and avoid a separate
      sub-build, 2021-01-29)
      
      bd876f38 (FetchContent: Restore patch command support,
      2021-02-18)
      
      404cddb7 (ExternalProject: Fix misuse of IS_NEWER_THAN in
      timestamp checks, 2021-02-21)
      
      b0da6712 (FetchContent: Don't update timestamps if files don't
      change, 2021-02-18)
      
      Fixes: #21892
      57d442e1
  15. Mar 03, 2021
  16. Mar 01, 2021
  17. Feb 24, 2021
  18. Feb 23, 2021
  19. Feb 19, 2021
  20. Feb 18, 2021
  21. Feb 15, 2021
Loading