1. 15 May, 2019 1 commit
  2. 03 May, 2019 1 commit
  3. 02 Jan, 2019 1 commit
  4. 07 Dec, 2018 1 commit
  5. 29 Oct, 2018 3 commits
  6. 10 Oct, 2018 1 commit
    • Kyle Edwards's avatar
      cmake_policy: Add undocumented GET_WARNING command · 0d988f98
      Kyle Edwards authored
      This command is intended for modules that issue policy warnings so
      they can get the warning string from CMake in a uniform manner,
      rather than duplicating the string. Several modules been updated
      to include an example of the usage of this new command.
      0d988f98
  7. 05 Oct, 2018 1 commit
  8. 31 Jul, 2018 1 commit
  9. 25 Jul, 2018 1 commit
  10. 18 Jul, 2018 1 commit
    • Brad King's avatar
      UseSWIG: Use CSharp language only if it is enabled · ed289e05
      Brad King authored
      In commit v3.12.0-rc1~2^2 (UseSWIG: Add CSHARP variant for wrapper
      files, 2018-06-08) we explicitly marked swig-generated `.cs` files as
      `LANGUAGE` CSharp so that the resulting sources can be compiled.
      However, this works only when the CSharp language has been enabled.
      
      Fixes: #18184
      ed289e05
  11. 03 Jul, 2018 1 commit
  12. 13 Jun, 2018 1 commit
  13. 12 Jun, 2018 3 commits
  14. 10 Apr, 2018 1 commit
  15. 03 Apr, 2018 1 commit
  16. 22 Mar, 2018 1 commit
  17. 14 Feb, 2018 2 commits
  18. 02 Feb, 2018 1 commit
    • Marc Chevrier's avatar
      UseSWIG: Restore support for like-named .i files in different modules · bc3697fa
      Marc Chevrier authored
      Fix logic added by commit 2ee10119 (swig: fix incremental build in
      case of removed interface files, 2017-11-06).  Name the extra targets
      added for Makefile generators using both the module name and .i base
      name to avoid collisions across modules.  Also make sure the extra
      targets added for all .i files in a module are added as dependencies
      instead of just the last one.
      
      Fixes: #17704
      bc3697fa
  19. 31 Jan, 2018 3 commits
  20. 08 Nov, 2017 1 commit
    • felix schwitzer's avatar
      swig: fix incremental build in case of removed interface files · 2ee10119
      felix schwitzer authored
      Commit v3.8.0-rc1~123^2 (UseSWIG: Automatically scan dependencies of SWIG files
      for Makefiles, 2016-12-21) introduced automatic dependency scanning for files
      `%include`d in a swig interface definition file. This works fine as long as no
      such file is removed. But removing a dependent file breaks an incremental build
      and `make` complains about a missing dependency, see #16830.
      
      Integrate the approach proposed in the issue above into the SWIG-module, do the
      workaround in a conditional step as it arises only for Makefile generators. For
      other generators use the implementation before that commit.
      
      Fixes: #17433.
      2ee10119
  21. 02 Aug, 2017 1 commit
    • Brad King's avatar
      UseSWIG: Fix when Java is enabled as a language · b4fbf677
      Brad King authored
      Since commit v3.8.0-rc1~251^2 (UseSWIG: Record generated java files as
      custom command outputs, 2016-11-28) the generated `.java` files are
      listed as sources in the call to `add_library` by swig_add_library.
      They are listed only as the outputs of custom commands and not intended
      for compilation as part of the library.
      Reported-by: Alan W. Irwin's avatarAlan W. Irwin <irwin@beluga.phys.uvic.ca>
      b4fbf677
  22. 13 Jun, 2017 1 commit
    • Robert Langlois's avatar
      UseSWIG: Add `-dllimport` only if not already specified · 76a0286b
      Robert Langlois authored
      SWIG fails with a redefined macro error when `-dllimport` is specified
      more than once.  One case where you would want to specify your own
      dllimport is when using SWIG with netstandard2.0.  .NET Core does not
      search for shared library like Mono or .NET, so you need a fully
      qualified shared library name.
      76a0286b
  23. 25 Apr, 2017 1 commit
  24. 11 Jan, 2017 1 commit
    • Daniel Pfeifer's avatar
      Don't include CMakeParseArguments · d6877e6c
      Daniel Pfeifer authored
      The cmake_parse_arguments command is builtin with version 3.5.
      The CMakeParseArguments module is empty and exists for backwards
      compatibility with CMake 3.4 and lower.
      
      Remove the includes of CMakeParseArguments from CMake's modules.
      The modules are always used with the current version of CMake.
      
      Leave the includes in the tests, as the tests may be run with an older
      version of CMake.
      d6877e6c
  25. 10 Jan, 2017 1 commit
  26. 29 Nov, 2016 1 commit
  27. 14 Nov, 2016 1 commit
  28. 11 Nov, 2016 3 commits
  29. 01 Nov, 2016 1 commit
    • congzhangzh's avatar
      UseSWIG: Add option to specify swig output file directory · 8444b984
      congzhangzh authored
      `swig` has two output-related options:
      
      * `-o <outfile>`: Set name of C/C++ output file to <outfile>
      * `-outdir <dir>`: Set language-specific files output directory to <dir>
      
      We already have `CMAKE_SWIG_OUTDIR` for the latter.  Add a new
      `SWIG_OUTFILE_DIR` option for the former.
      8444b984
  30. 27 Sep, 2016 1 commit
    • Brad King's avatar
      Simplify CMake per-source license notices · 86578ecc
      Brad King authored
      Per-source copyright/license notice headers that spell out copyright holder
      names and years are hard to maintain and often out-of-date or plain wrong.
      Precise contributor information is already maintained automatically by the
      version control tool.  Ultimately it is the receiver of a file who is
      responsible for determining its licensing status, and per-source notices are
      merely a convenience.  Therefore it is simpler and more accurate for
      each source to have a generic notice of the license name and references to
      more detailed information on copyright holders and full license terms.
      
      Our `Copyright.txt` file now contains a list of Contributors whose names
      appeared source-level copyright notices.  It also references version control
      history for more precise information.  Therefore we no longer need to spell
      out the list of Contributors in each source file notice.
      
      Replace CMake per-source copyright/license notice headers with a short
      description of the license and links to `Copyright.txt` and online information
      available from "https://cmake.org/licensing".  The online URL also handles
      cases of modules being copied out of our source into other projects, so we
      can drop our notices about replacing links with full license text.
      
      Run the `Utilities/Scripts/filter-notices.bash` script to perform the majority
      of the replacements mechanically.  Manually fix up shebang lines and trailing
      newlines in a few files.  Manually update the notices in a few files that the
      script does not handle.
      86578ecc
  31. 27 Jul, 2016 1 commit
    • Daniel Pfeifer's avatar
      Use string(APPEND) in Modules · 5d0d980d
      Daniel Pfeifer authored
      Automate with:
      
      find Modules -type f -print0 | xargs -0 perl -i -0pe \
      's/set\(([a-zA-Z0-9_]+)(\s+)"\$\{\1\}([^"])/string(APPEND \1\2"\3/g'
      5d0d980d