1. 04 Nov, 2016 3 commits
    • Kitware Robot's avatar
      Revise C++ coding style using clang-format · 6c973b46
      Kitware Robot authored
      Run the `clang-format.bash` script to update all our C and 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.
      
      Change-Id: Ie3aedc03bfe5c3999d4a077fafb8c6f3bbffc5c5
      6c973b46
    • Brad King's avatar
      Simplify KWSys per-source license notices · c41c1bc4
      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 KWSys 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#kwsys".
      
      Run the `filter-notices.bash` script to perform the replacements mechanically.
      Manually fix up the shebang line in one file.
      
      Change-Id: I8497f7c868664dcf54a8608ab302ad93c860b334
      c41c1bc4
    • Brad King's avatar
      Sort includes to stabilize include order w.r.t. clang-format · 15e90a3c
      Brad King authored
      The clang-format tool sorts `#include` lines within contiguous blocks.
      Separate blocks with blank lines and sort the include lines within them
      so that clang-format does not re-order anything.
      
      Change-Id: I96d6828f470b9a234464972172d46afab322487c
      15e90a3c
  2. 11 Jan, 2016 1 commit
  3. 18 Dec, 2014 1 commit
  4. 14 Nov, 2014 1 commit
    • Brad King's avatar
      SharedForward: Hard-code the ldpath buffer size to below VS 14 limit · dec9c30b
      Brad King authored
      Visual Studio 14 (2015) complains if a static character array is
      declared with more than 65535 elements.  This limit should be large
      enough for SharedForward clients, so just hard-code that instead of
      trying to compute a limit.
      
      Change-Id: Ib24195b0d0972bdabaf5a18b93a1a9b8c43dc773
      dec9c30b
  5. 04 Aug, 2014 1 commit
  6. 04 Jan, 2014 1 commit
  7. 06 May, 2013 1 commit
  8. 19 Apr, 2010 1 commit
  9. 13 Jan, 2010 1 commit
    • Brad King's avatar
      KWSys: Fix SharedForward on Cygwin without -mwin32 · ba32af99
      Brad King authored
      When building on Cygwin without -mwin32, the _WIN32 macro may not be
      defined.  SharedForward must still set the PATH environment variable to
      ensure runtime dependencies are found.
      
      The 'ldd' wrapping feature uses 'cygcheck' for now since a real ldd tool
      is not available in Cygwin 1.5.  We can change to use the real ldd when
      we choose to stop supporting legacy Cygwin and require 1.7.
      ba32af99
  10. 16 Dec, 2009 1 commit
    • Brad King's avatar
      KWSys: Improve SharedForward platform table · ff91094c
      Brad King authored
      The SharedForward header contains a preprocessor table mapping from
      platform to equivalents for ldd and LD_LIBRARY_PATH.  This commit fixes
      the table preprocessor directives to guarantee at most one platform.
      This generalizes the commit "Fix compilation of VTK on debian/sparc".
      ff91094c
  11. 28 Sep, 2009 1 commit
    • Brad King's avatar
      Convert KWSys to OSI-approved BSD License · 62db264e
      Brad King authored
      This converts the KWSys 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 KWSys copyright to
      cover the full development time range.
      62db264e
  12. 24 Jul, 2009 1 commit
  13. 09 Jul, 2009 1 commit
  14. 08 Jul, 2009 2 commits
  15. 27 Sep, 2008 1 commit
    • Brad King's avatar
      COMP: Avoid incompatible pointer warning · a1a6712b
      Brad King authored
      In SharedForward, the call to execvp warned on MinGW because the
      signature declared in process.h has an extra const.  We use an explicit
      cast to convert the pointer type.
      a1a6712b
  16. 26 Sep, 2008 3 commits
    • Brad King's avatar
      BUG: Fix SharedForward with spaces on windows · b458b866
      Brad King authored
      The windows execvp function does not re-escape arguments correctly.
      Instead we generate the escape sequences before calling it.
      b458b866
    • Brad King's avatar
      BUG: Fix SharedForward in-tree detection · 836b8b3b
      Brad King authored
      To detect when the launcher is running from the build tree we now test
      if the directory containing it is the same as the build-tree directory
      using an inode test instead of string comparison.  This makes it more
      robust on case-insensitive filesystems and other quirky situations.
      836b8b3b
    • Brad King's avatar
      COMP: Avoid 64-to-32-bit integer conversion warning · ea3cb185
      Brad King authored
      In SharedForward we are only dealing with command-line-length strings so we
      need not worry about integer overflow.
      ea3cb185
  17. 08 Jan, 2007 1 commit
  18. 21 Sep, 2006 1 commit
  19. 31 Aug, 2005 1 commit
  20. 18 Aug, 2005 2 commits
    • Brad King's avatar
      BUG: Fixed dirname in a few cases on windows. Now using... · 54e2499c
      Brad King authored
      BUG: Fixed dirname in a few cases on windows.  Now using KWSYS_SHARED_FORWARD_CONFIG_NAME setting instead of CMAKE_INTDIR directly to give choice to user code.  Updated documentation to include @KWSYS_NAMESPACE@_SHARED_FORWARD_CONFIG_NAME, @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_PRINT, and @KWSYS_NAMESPACE@_SHARED_FORWARD_OPTION_LDD settings.
      54e2499c
    • Brad King's avatar
      ENH: Added support for Windows. · b82f6f84
      Brad King authored
      b82f6f84
  21. 13 May, 2005 1 commit
  22. 25 Mar, 2005 1 commit
    • Brad King's avatar
      ENH: Adding SharedForward C header to help create forwarding executables on... · 2c2c7369
      Brad King authored
      ENH: Adding SharedForward C header to help create forwarding executables on UNIX systems that configure the shared library runtime search path and then replace themselves with the real executable.  This is useful to create binary distributions that work from any extracted location even with shared libraries.
      2c2c7369