Commit Graph

21 Commits

Author SHA1 Message Date
Brad King 7db95df39d Merge branch 'upstream-kwsys' into update-kwsys 2014-03-04 10:19:33 -05:00
Brad King b7593bf3f5 Merge branch 'upstream-kwsys' into update-kwsys 2013-05-07 08:38:10 -04:00
Brad King 43072405e2 KWSys SharedForward: Add OpenBSD support
Patch from Chuck Atkins <chuck.atkins@kitware.com>
2010-04-19 16:30:23 -04:00
Brad King 879b47e6ba KWSys: Fix SharedForward on Cygwin without -mwin32
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.
2010-01-13 12:58:34 -05:00
Brad King 56fe170043 KWSys: Improve SharedForward platform table
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".
2009-12-16 14:25:46 -05:00
Brad King de955e4b6d Convert KWSys to OSI-approved BSD License
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.
2009-09-28 11:37:35 -04:00
Mathieu Malaterre 961f9f583f COMP: Fix compilation of VTK on debian/sparc (sparc is a CPU not an OS) 2009-07-24 12:15:41 -04:00
Brad King 5692fa2ecb COMP: More KWSys SharedForward pointer const-ness
This adds another cast to avoid pointer conversion warnings.
Unfortunately C does not recognize implicit conversions that add
cv-qualifiers as well as C++ does.
2009-07-09 14:15:35 -04:00
Brad King 6028f3a4c7 COMP: Fix KWSys SharedForward sign conversion
This uses size_t where necessary to avoid size_t/int conversion
warnings.
2009-07-08 15:09:16 -04:00
Brad King 4c0bbe3828 COMP: Fix KWSys SharedForward pointer const-ness
This adds const-ness and casts where necessary to avoid pointer
conversion warnings.
2009-07-08 15:09:10 -04:00
Brad King 734ef07548 COMP: Avoid incompatible pointer warning
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.
2008-09-27 08:04:13 -04:00
Brad King d6643ebba4 BUG: Fix SharedForward with spaces on windows
The windows execvp function does not re-escape arguments correctly.
Instead we generate the escape sequences before calling it.
2008-09-26 08:24:25 -04:00
Brad King 014f684317 BUG: Fix SharedForward in-tree detection
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.
2008-09-26 08:24:20 -04:00
Brad King 97c7c86898 COMP: Avoid 64-to-32-bit integer conversion warning
In SharedForward we are only dealing with command-line-length strings so we
need not worry about integer overflow.
2008-09-26 08:24:15 -04:00
Brad King 55f5f27cd6 STYLE: Fixed documentation of how to produce forwarding executables for multi-configuration builds with CMAKE_INTDIR. 2007-01-08 15:12:00 -05:00
Brad King b6e8574ab1 ENH: Added KWSYS_SHARED_FORWARD_OPTION_COMMAND option to allow users to replace the command executed. Extended documentation at top of file. 2006-09-21 10:04:55 -04:00
Brad King 2e004e03ca ENH: Added cygcheck knowledge for --ldd option on Cygwin. Added error message for --ldd option when no tool is available but the option was still requested. 2005-08-31 19:41:53 -04:00
Brad King ca1cd089ae 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. 2005-08-18 16:06:08 -04:00
Brad King 207c39a7ad ENH: Added support for Windows. 2005-08-18 09:23:15 -04:00
Brad King cbf6358068 ENH: Added knowledge of FreeBSD. 2005-05-13 14:45:54 -04:00
Brad King e0cfb268b6 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. 2005-03-25 08:41:57 -05:00