KWSys: Fix SystemTools::FileIsDirectory with long paths (#14176)

Allocate a buffer large enough to hold the input path when removing a
trailing slash.  Use a local stack buffer when it is large enough and
fall back to heap allocation otherwise.
Merge branch 'master' into fix-FileIsDirectory-SEGV

Resolve conflict in Source/kwsys/SystemTools.cxx by combining the two
changes.
if: Add test for IS_DIRECTORY

Add a RunCMake.if test to cover if() command behavior.  Start with a
test for IS_DIRECTORY cases with an existing directory and a long path,
both with a trailing slash.
CMake Nightly Date Stamp
Fix test name.
Merge topic 'VISIBILITY_PRESET-property' into next

ed198cd Fix test name.
Introduce target property <LANG>_VISIBILITY_PRESET

This is initialized by CMAKE_<LANG>_VISIBILITY_PRESET. The target
property is used as the operand to the -fvisibility= compile option
with GNU compilers and clang.
Add a COMPILE_OPTION for a VISIBILITY_INLINES_HIDDEN target property.

This corresponds to the g++ and clang++
option -fvisibility-inlines-hidden on linux. On Windows with MinGW,
this corresponds to -fno-keep-inline-dllexport. That option is
not supported by clang currently.
Merge topic 'VISIBILITY_PRESET-property' into next

6d585e0 Add a COMPILE_OPTION for a VISIBILITY_INLINES_HIDDEN target property.
36d8874 Introduce target property <LANG>_VISIBILITY_PRESET
Fix indentation.
Merge topic 'fix-style' into next

e162326 Fix indentation.
KWSys 2013-05-29 (725e541e)

Extract upstream KWSys using the following shell commands.

$ git archive --prefix=upstream-kwsys/ 725e541e | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' f4928d44..725e541e
Brad King (1):
      9fd64779 SystemTools: Fix FileIsDirectory with long paths

Rolf Eike Beer (3):
      e8269442 Tests: fix a warning with acc
      87abd647 SystemInformation: fix truncation warnings
      039d9598 fix warnings about sizeof() return value truncation

Change-Id: I1c459346a622610eac62dfcd3abd0e73c5a83494
Merge branch 'upstream-kwsys' into update-kwsys
Merge topic 'update-kwsys' into next

2c0c59a Merge branch 'upstream-kwsys' into update-kwsys
9270129 KWSys 2013-05-29 (725e541e)
6927b25 CMake Nightly Date Stamp
Merge topic 'fix-FileIsDirectory-SEGV' into next

7378792 if: Add test for IS_DIRECTORY
4ab10e0 Merge branch 'master' into fix-FileIsDirectory-SEGV
045d6ae KWSys: Fix SystemTools::FileIsDirectory with long paths (#14176)
Xcode: Add support for shared library versioning

Add a post-build command to shared library targets to create the
versioning symbolic links.
Merge topic 'xcode-shlib-versioning' into next

cbe3f20 Xcode: Add support for shared library versioning
Add visibility flags when using xcode if needed.
Merge topic 'VISIBILITY_PRESET-property' into next

967b386 Add visibility flags when using xcode if needed.
Introduce target property <LANG>_VISIBILITY_PRESET

This is initialized by CMAKE_<LANG>_VISIBILITY_PRESET. The target
property is used as the operand to the -fvisibility= compile option
with GNU compilers and clang.