1. 19 Oct, 2016 1 commit
  2. 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.
  3. 28 Jun, 2016 1 commit
  4. 16 May, 2016 1 commit
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · d9fd2f54
      Kitware Robot authored
      Run the `Utilities/Scripts/clang-format.bash` script to update
      all our C++ code to a new style defined by `.clang-format`.
      Use `clang-format` version 3.8.
      * 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.
  5. 06 May, 2016 1 commit
    • Brad King's avatar
      Isolate formatted streaming blocks with clang-format off/on · 64b55203
      Brad King authored
      The clang-format tool can do a good job formatting most code, but
      well-organized streaming blocks are best left manually formatted.
      Find blocks of the form
          os <<
      using the command
          $ git ls-files -z -- Source |
            egrep -v -z '^Source/kwsys/' |
            xargs -0 pcregrep -M --color=always -B 1 -A 1 -n \
              '<<[^\n]*\n(^ *("[^\n]*("|<<|;)$|;)\n){2,}'
      Find blocks of the form
          os << "...\n"
             << "...\n"
             << "...\n";
      using the command
          $ git ls-files -z -- Source |
            egrep -v -z '^Source/kwsys/' |
            xargs -0 pcregrep -M --color=always -B 1 -A 1 -n \
              '<<[^\n]*\n(^ *<<[^\n]*(\\n"|<<|;)$\n){2,}'
      Surround such blocks with the pair
          /* clang-format off */
          /* clang-format on */
      in order to protect them from update by clang-format.  Use the C-style
      `/*...*/` comments instead of C++-style `//...` comments in order to
      prevent them from ever being swallowed by re-formatting of surrounding
  6. 29 Apr, 2016 1 commit
    • Brad King's avatar
      Source: Stabilize include order · 180538c7
      Brad King authored
      Each source file has a logical first include file.  Include it in an
      isolated block so that tools that sort includes do not move them.
  7. 19 Feb, 2016 1 commit
    • Brad King's avatar
      try_compile: Add option to control type of target · 7f1bd9fe
      Brad King authored
      Create a `CMAKE_TRY_COMPILE_TARGET_TYPE` option to specify use
      of `add_library(... STATIC ...)` for the generated test project.
      This will be useful for cross-compiling toolchains that cannot
      link a binary without custom flags or scripts.
  8. 19 May, 2015 1 commit
  9. 20 Apr, 2015 1 commit
  10. 13 Apr, 2015 2 commits
  11. 08 Apr, 2015 2 commits
  12. 07 Apr, 2015 1 commit
    • Brad King's avatar
      Revert topic 'refactor-cache-api' · 3347c5e4
      Brad King authored
      This topic was never tested without some follow-up commits.  The
      GetCacheEntryValue API returns a pointer to memory freed on return.
      It will have to be revised along with the rest of the original topic.
  13. 06 Apr, 2015 1 commit
  14. 26 Jan, 2015 1 commit
    • Matt McCormick's avatar
      try_run: Add support for LINK_LIBRARIES option. · e2b1f058
      Matt McCormick authored
      Most functionality is already implemented in Source/cmCoreTryCompile.{h,cxx}.
      Document and improve argument parsing.
      This functionality is already being used by a number of modules, like
      CheckCSourceCompiles.cmake, but it is not documented.
  15. 18 Jan, 2015 2 commits
  16. 15 Oct, 2014 1 commit
  17. 11 Mar, 2014 1 commit
    • Stephen Kelly's avatar
      Remove some c_str() calls. · 21c573f6
      Stephen Kelly authored
      Use the clang RemoveCStrCalls tool to automatically migrate the
      code. This was only run on linux, so does not have any positive or
      negative effect on other platforms.
  18. 07 Jan, 2014 1 commit
  19. 22 Aug, 2013 1 commit
    • Stephen Kelly's avatar
      Generate modern-style cmake code. · 33055c40
      Stephen Kelly authored
      The commits 9db31162 (Remove CMake-language block-end command
      arguments, 2012-08-13) and 77543bde (Convert CMake-language
      commands to lower case, 2012-08-13) changed most cmake code
      to use lowercase commands and no parameters in termination
      commands. However, those changes excluded cmake code generated
      in c++ by cmake.
      Make a similar style change to code generated by cmake.
  20. 27 Sep, 2011 1 commit
  21. 15 Sep, 2011 2 commits
  22. 28 Jul, 2011 1 commit
  23. 13 Jul, 2010 1 commit
  24. 01 Oct, 2009 1 commit
  25. 28 Sep, 2009 1 commit
    • Brad King's avatar
      Convert CMake to OSI-approved BSD License · 96afb120
      Brad King authored
      This converts the CMake license to a pure 3-clause OSI-approved BSD
      License.  We drop the previous license clause requiring modified
      versions to be plainly marked.  We also update the CMake copyright to
      cover the full development time range.
  26. 23 Jan, 2008 1 commit
  27. 17 Sep, 2007 1 commit
    • Alexander Neundorf's avatar
      · ed6d98c3
      Alexander Neundorf authored
      STYLE: copy the executables from TRY_RUN() to
      ${CMAKE_BINARY_DIR}/CMakeFiles/ instead to ${CMAKE_BINARY_DIR}
  28. 01 Aug, 2007 2 commits
    • Alexander Neundorf's avatar
      · 8046390f
      Alexander Neundorf authored
      ENH: if no COMPONENT is specified, make this install item part of the
      "Unspecified" component -> if no components are used at all, no change in
      behaviour, if components are used completely, no change in behaviour, since
      this default will be overridden everywhere, if components where used partly,
      it is now possible to install only the unspecified items (e.g. everything
      which wasn't marked as "Development")
    • Alexander Neundorf's avatar
      · a0533be2
      Alexander Neundorf authored
      STYLE: some more tuning for the comment text
  29. 31 Jul, 2007 1 commit
    • Alexander Neundorf's avatar
      · 67672b81
      Alexander Neundorf authored
      ENH: add tests for check_c_source_runs(), check_cxx_source_runs(),
      check_c_source_compiles() and check_cxx_source_compiles()
      -TRY_RUN in crosscompiling mode: copy the created executables to
      CMAKE_BINARY_DIR so the user can run them manually on the target
  30. 30 Jul, 2007 1 commit
    • Alexander Neundorf's avatar
      · a9d19d88
      Alexander Neundorf authored
      ENH: FORCE the values in the cache, otherwise the file is useless
  31. 26 Jul, 2007 1 commit
    • Alexander Neundorf's avatar
      · 0ea4c7b7
      Alexander Neundorf authored
      STYLE: fix line lengths
  32. 23 Jul, 2007 2 commits
    • Alexander Neundorf's avatar
      · 7497f8ac
      Alexander Neundorf authored
      STYLE: put a lot of comments into the generated cmake-cache preloading file to aid the user with using it
    • Alexander Neundorf's avatar
      · cbab7651
      Alexander Neundorf authored
      ENH: try to create a file which can be used for presetting the cache values
      of the TRY_RUN() results when crosscompiling
  33. 01 Jun, 2007 1 commit
    • Alexander Neundorf's avatar
      · eddf1cf3
      Alexander Neundorf authored
      ENH: improve TRY_RUN() for crosscompiling: instead of just failing, it now
      creates two cache variables, one for the RUN_RESULT, one for the RUN_OUTPUT
      (if required), which can be set or preset by the user. It has now also two
      new arguments: RUN_OUTPUT_VARIABLE and COMPILE_OUTPUT_VARIABLE (the old
      OUTPUT_VARIABLE merges both), so if only COMPILE_OUTPUT_VARIABLE is used the
      run time output of the TRY_RUN is unused and the user doesn't have to care
      about the output when crosscompiling. This is now used in FindThreads.cmake,
      CheckC/CXXSourceRuns.cmake and TestBigEndian.cmake, which used the output
      only for the logfile (compile output is still there). Test/TryCompile/ now
      also tests the behaviour of OUTPUT_VARIABLE, RUN_OUTPUT_VARIABLE and
  34. 25 May, 2007 1 commit
    • Alexander Neundorf's avatar
      · 1ed238c7
      Alexander Neundorf authored
      BUG: remove debug output