diff options
author | Brad King <brad.king@kitware.com> | 2014-11-14 18:49:32 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-14 18:56:58 (GMT) |
commit | 480ed9cdec30d59991f6639e79bc5609634a1b47 (patch) | |
tree | 4eabba19dcee8b4fd54d9b06c3d085d6c14e3b00 /Source | |
parent | a234bcafd2487ff348546addd9d07f5c74549528 (diff) | |
download | CMake-480ed9cdec30d59991f6639e79bc5609634a1b47.zip CMake-480ed9cdec30d59991f6639e79bc5609634a1b47.tar.gz CMake-480ed9cdec30d59991f6639e79bc5609634a1b47.tar.bz2 |
KWSys SharedForward: Hard-code the ldpath buffer size to below VS 14 limit
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.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/kwsys/SharedForward.h.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/SharedForward.h.in b/Source/kwsys/SharedForward.h.in index 7ff29b4..c6f345f 100644 --- a/Source/kwsys/SharedForward.h.in +++ b/Source/kwsys/SharedForward.h.in @@ -813,7 +813,7 @@ static void kwsys_shared_forward_print_failure(char const* const* argv) } /* Static storage space to store the updated environment variable. */ -static char kwsys_shared_forward_ldpath[KWSYS_SHARED_FORWARD_MAXPATH*16] = KWSYS_SHARED_FORWARD_LDPATH "="; +static char kwsys_shared_forward_ldpath[65535] = KWSYS_SHARED_FORWARD_LDPATH "="; /*--------------------------------------------------------------------------*/ /* Main driver function to be called from main. */ |