Commit Graph

29 Commits

Author SHA1 Message Date
Brad King 86578eccf2 Simplify CMake per-source license notices
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.
2016-09-27 15:14:44 -04:00
Kitware Robot d9fd2f5402 Revise C++ coding style using clang-format
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.
2016-05-16 16:05:19 -04:00
Brad King 96afb12087 Convert CMake to OSI-approved BSD License
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.
2009-09-28 11:43:28 -04:00
Ken Martin 0e69d38004 ENH: add return and break support to cmake, also change basic command invocation signature to be able to return extra informaiton via the cmExecutionStatus class 2008-01-23 10:28:26 -05:00
Ken Martin bb88ef5e41 STYLE: fix line length 2006-05-10 15:08:38 -04:00
Brad King 1f6a3c67b1 ENH: Added reference to Copyright.txt. Removed old reference to ITK copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs. 2002-10-23 18:03:27 -04:00
Ken Martin 7ddb408621 removed some includes 2002-09-27 16:24:10 -04:00
Ken Martin 96a3b4d3fc compiler warning 2002-08-12 08:39:08 -04:00
Ken Martin 6deb5bbe70 better IF ELSE handling 2002-08-09 12:00:49 -04:00
Ken Martin 32ad30e883 better error handling with if statements 2002-07-10 11:38:38 -04:00
Ken Martin a43a65bf34 consolidated IF handling and added checks for bad arguments 2002-07-01 08:49:36 -04:00
Bill Hoffman 20d9083455 modified MATCHES to handle non variables 2002-06-20 10:39:58 -04:00
Ken Martin 843da92405 adde less greater 2002-05-23 10:32:28 -04:00
Bill Hoffman 4651dbcfc6 ENH: expand variables in arguments before the commands get them 2002-03-05 18:41:24 -05:00
Will Schroeder a6a43d5320 ENH:Updated copyright 2002-01-21 15:30:43 -05:00
Bill Hoffman 71b36a7164 BUG: GetDefiniton can return null 2002-01-18 10:27:56 -05:00
Ken Martin d163cb7014 expand vars nwo for exists test 2002-01-03 09:34:40 -05:00
Ken Martin e07ea14e31 added exists option for if statement 2002-01-02 16:46:08 -05:00
Brad King 16b0571d93 ENH: Added option to IF command to test if a command exists. Syntax is IF(COMMAND name-of-command). 2001-12-18 09:51:18 -05:00
Bill Hoffman baa28efd10 ENH: change InitialPass to take a const reference to the argument string, to avoid changes to the file cache 2001-09-20 15:08:30 -04:00
Ken Martin c151f30861 backwards MATCHES in if and else statements 2001-08-17 17:11:42 -04:00
Berk Geveci 78da2d0699 BUG: or and and were inverted. 2001-08-09 14:58:47 -04:00
Ken Martin d7702b4c30 added new if commands 2001-08-06 17:01:26 -04:00
Bill Hoffman 9922155423 ENH: rename Invoke to InitialPass 2001-06-06 13:19:15 -04:00
Ken Martin a99dfa60ae new set command and IF NOT 2001-05-01 11:16:20 -04:00
Ken Martin 2fb2207c10 bug fixes 2001-04-30 14:56:06 -04:00
Will Schroeder 54cfe84f3f ENH:New copyright 2001-04-27 08:01:17 -04:00
Ken Martin 6e5af0e6cc some fixes for If commands 2001-04-26 10:49:12 -04:00
Ken Martin b5f62159ca added if else endif add definition 2001-04-19 17:39:03 -04:00