1. 07 Apr, 2021 1 commit
  2. 05 Apr, 2021 1 commit
  3. 02 Apr, 2021 1 commit
    • 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
  4. 01 Apr, 2021 2 commits
  5. 31 Mar, 2021 3 commits
  6. 30 Mar, 2021 1 commit
  7. 27 Mar, 2021 1 commit
  8. 26 Mar, 2021 6 commits
    • 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
    • Craig Scott's avatar
      CPackIFW: Fix parsing of name and version in component DEPENDS · a43783a0
      Craig Scott authored
      The DEPENDS or DEPENDENCIES arguments in a call to
      cpack_ifw_configure_component() or cpack_ifw_configure_component_group()
      specify a name and optionally a version constraint as a single string.
      QtIFW also allows a colon (requires QtIFW 3.1 or later) or a hyphen to
      separate the name and version. The version may optionally contain a
      leading operator, with = being assumed when no operator is present.
      
      The previous code was not handling : as a separator at all and was
      erroneously dropping the version part when no operator was given.
      Fix both of those non-conforming behaviors and also warn if trying
      to use a hyphen in a name with a QtIFW version that isn't recent enough
      to support it.
      
      Fixes: #21697
      a43783a0
    • Marc Chevrier's avatar
      1d8e3a1e
    • 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
    • friendlyanon's avatar
      project: Define variables indicating whether project is top level · 96a70401
      friendlyanon authored and Brad King's avatar Brad King committed
      Define `PROJECT_IS_TOP_LEVEL` and `<PROJECT-NAME>_IS_TOP_LEVEL`.  The
      latter is a STATIC cache entry just like other `<PROJECT-NAME>_*`
      variables so that it is globally scoped.
      
      Issue: #20310
      Fixes: #21961
      96a70401
    • Brad King's avatar
  9. 25 Mar, 2021 1 commit
  10. 24 Mar, 2021 1 commit
  11. 22 Mar, 2021 4 commits
  12. 19 Mar, 2021 1 commit
  13. 18 Mar, 2021 5 commits
  14. 17 Mar, 2021 1 commit
  15. 16 Mar, 2021 4 commits
  16. 15 Mar, 2021 4 commits
  17. 12 Mar, 2021 2 commits
    • 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
  18. 10 Mar, 2021 1 commit
    • Ben Boeckel's avatar
      file: add `COPY_FILE` subcommand · 08844421
      Ben Boeckel authored
      The `file(COPY)` subcommand is overloaded and busy for such a simple
      operation. Instead, make a simpler subcommand with error handling
      support.
      08844421