diff options
author | Brad King <brad.king@kitware.com> | 2005-04-13 20:46:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-04-13 20:46:09 (GMT) |
commit | caf54b20931408c1b5d878b1cf2a76147ab61454 (patch) | |
tree | 2e36fb6442662190452b2a0653cf5648c6f10e5a /Source/kwsys | |
parent | 826405a1b668900ef4d5ecc0b676197e978bb80f (diff) | |
download | CMake-caf54b20931408c1b5d878b1cf2a76147ab61454.zip CMake-caf54b20931408c1b5d878b1cf2a76147ab61454.tar.gz CMake-caf54b20931408c1b5d878b1cf2a76147ab61454.tar.bz2 |
COMP: Adding work-around for CMake dependency scanning limitation. Any configured header included by KWSYS_HEADER() in a .c or .cxx file in kwsys itself must use this hack to get dependencies.
Diffstat (limited to 'Source/kwsys')
-rw-r--r-- | Source/kwsys/Base64.c | 6 | ||||
-rw-r--r-- | Source/kwsys/CommandLineArguments.cxx | 10 | ||||
-rw-r--r-- | Source/kwsys/Directory.cxx | 9 | ||||
-rw-r--r-- | Source/kwsys/ProcessUNIX.c | 6 | ||||
-rw-r--r-- | Source/kwsys/ProcessWin32.c | 6 | ||||
-rw-r--r-- | Source/kwsys/RegularExpression.cxx | 6 | ||||
-rw-r--r-- | Source/kwsys/SystemTools.cxx | 10 | ||||
-rw-r--r-- | Source/kwsys/test1.cxx | 8 | ||||
-rw-r--r-- | Source/kwsys/testCommandLineArguments.cxx | 8 | ||||
-rw-r--r-- | Source/kwsys/testIOS.cxx | 8 | ||||
-rw-r--r-- | Source/kwsys/testProcess.c | 7 | ||||
-rw-r--r-- | Source/kwsys/testSystemTools.cxx | 7 | ||||
-rw-r--r-- | Source/kwsys/testhash.cxx | 21 |
13 files changed, 111 insertions, 1 deletions
diff --git a/Source/kwsys/Base64.c b/Source/kwsys/Base64.c index 0c5e44f..8960428 100644 --- a/Source/kwsys/Base64.c +++ b/Source/kwsys/Base64.c @@ -15,6 +15,12 @@ #include "kwsysPrivate.h" #include KWSYS_HEADER(Base64.h) +/* Work-around CMake dependency scanning limitation. This must + duplicate the above list of headers. */ +#if 0 +# include "Base64.h.in" +#endif + /*--------------------------------------------------------------------------*/ static const unsigned char kwsysBase64EncodeTable[65] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" diff --git a/Source/kwsys/CommandLineArguments.cxx b/Source/kwsys/CommandLineArguments.cxx index de30952..dcd9a64 100644 --- a/Source/kwsys/CommandLineArguments.cxx +++ b/Source/kwsys/CommandLineArguments.cxx @@ -22,6 +22,16 @@ #include KWSYS_HEADER(ios/sstream) #include KWSYS_HEADER(ios/iostream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "CommandLineArguments.hxx.in" +# include "Configure.hxx.in" +# include "kwsys_stl.hxx.in" +# include "kwsys_ios_sstream.h.in" +# include "kwsys_ios_iostream.h.in" +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx index 40425ef..e98c259 100644 --- a/Source/kwsys/Directory.cxx +++ b/Source/kwsys/Directory.cxx @@ -19,6 +19,15 @@ #include KWSYS_HEADER(stl/string) #include KWSYS_HEADER(stl/vector) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "Directory.hxx.in" +# include "Configure.hxx.in" +# include "kwsys_stl.hxx.in" +# include "kwsys_stl_string.hxx.in" +#endif + namespace KWSYS_NAMESPACE { diff --git a/Source/kwsys/ProcessUNIX.c b/Source/kwsys/ProcessUNIX.c index c36a137..849f6b9 100644 --- a/Source/kwsys/ProcessUNIX.c +++ b/Source/kwsys/ProcessUNIX.c @@ -14,6 +14,12 @@ #include "kwsysPrivate.h" #include KWSYS_HEADER(Process.h) +/* Work-around CMake dependency scanning limitation. This must + duplicate the above list of headers. */ +#if 0 +# include "Process.h.in" +#endif + /* Implementation for UNIX diff --git a/Source/kwsys/ProcessWin32.c b/Source/kwsys/ProcessWin32.c index 7175d1b..730448a 100644 --- a/Source/kwsys/ProcessWin32.c +++ b/Source/kwsys/ProcessWin32.c @@ -14,6 +14,12 @@ #include "kwsysPrivate.h" #include KWSYS_HEADER(Process.h) +/* Work-around CMake dependency scanning limitation. This must + duplicate the above list of headers. */ +#if 0 +# include "Process.h.in" +#endif + /* Implementation for Windows diff --git a/Source/kwsys/RegularExpression.cxx b/Source/kwsys/RegularExpression.cxx index 707c70a..bb9e9b1 100644 --- a/Source/kwsys/RegularExpression.cxx +++ b/Source/kwsys/RegularExpression.cxx @@ -33,6 +33,12 @@ #include "kwsysPrivate.h" #include KWSYS_HEADER(RegularExpression.hxx) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "RegularExpression.hxx.in" +#endif + #include <stdio.h> #include <string.h> diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index c439775..235e4f6 100644 --- a/Source/kwsys/SystemTools.cxx +++ b/Source/kwsys/SystemTools.cxx @@ -19,6 +19,16 @@ #include KWSYS_HEADER(ios/fstream) #include KWSYS_HEADER(ios/sstream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "SystemTools.hxx.in" +# include "Directory.hxx.in" +# include "kwsys_ios_iostream.h.in" +# include "kwsys_ios_fstream.h.in" +# include "kwsys_ios_sstream.h.in" +#endif + #ifdef _MSC_VER # pragma warning (disable: 4786) #endif diff --git a/Source/kwsys/test1.cxx b/Source/kwsys/test1.cxx index 19f5c9b..137f83e 100644 --- a/Source/kwsys/test1.cxx +++ b/Source/kwsys/test1.cxx @@ -16,6 +16,14 @@ #include KWSYS_HEADER(Process.h) #include KWSYS_HEADER(ios/iostream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "Directory.hxx.in" +# include "Process.h.in" +# include "kwsys_ios_iostream.h.in" +#endif + int main() { kwsys::Directory(); diff --git a/Source/kwsys/testCommandLineArguments.cxx b/Source/kwsys/testCommandLineArguments.cxx index 5ae0131..de7cf8c 100644 --- a/Source/kwsys/testCommandLineArguments.cxx +++ b/Source/kwsys/testCommandLineArguments.cxx @@ -12,10 +12,16 @@ =========================================================================*/ #include "kwsysPrivate.h" - #include KWSYS_HEADER(CommandLineArguments.hxx) #include KWSYS_HEADER(ios/iostream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "CommandLineArguments.hxx.in" +# include "kwsys_ios_iostream.h.in" +#endif + void* random_ptr = (void*)0x123; int argument(const char* arg, const char* value, void* call_data) diff --git a/Source/kwsys/testIOS.cxx b/Source/kwsys/testIOS.cxx index a6f33d8..d699ae5 100644 --- a/Source/kwsys/testIOS.cxx +++ b/Source/kwsys/testIOS.cxx @@ -3,6 +3,14 @@ #include KWSYS_HEADER(ios/sstream) #include KWSYS_HEADER(ios/iostream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "kwsys_stl_vector.h.in" +# include "kwsys_ios_sstream.h.in" +# include "kwsys_ios_iostream.h.in" +#endif + int main() { kwsys_ios::ostringstream ostr; diff --git a/Source/kwsys/testProcess.c b/Source/kwsys/testProcess.c index e8dc53d..16f7779 100644 --- a/Source/kwsys/testProcess.c +++ b/Source/kwsys/testProcess.c @@ -13,6 +13,13 @@ =========================================================================*/ #include "kwsysPrivate.h" #include KWSYS_HEADER(Process.h) + +/* Work-around CMake dependency scanning limitation. This must + duplicate the above list of headers. */ +#if 0 +# include "Process.h.in" +#endif + #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx index 600ed5a..ac575a9 100644 --- a/Source/kwsys/testSystemTools.cxx +++ b/Source/kwsys/testSystemTools.cxx @@ -15,6 +15,13 @@ #include KWSYS_HEADER(SystemTools.hxx) #include KWSYS_HEADER(ios/iostream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "SystemTools.hxx.in" +# include "kwsys_ios_iostream.h.in" +#endif + const char* toUnixPaths[][2] = { { "/usr/local/bin/passwd", "/usr/local/bin/passwd" }, diff --git a/Source/kwsys/testhash.cxx b/Source/kwsys/testhash.cxx index 8360a18..609f20d 100644 --- a/Source/kwsys/testhash.cxx +++ b/Source/kwsys/testhash.cxx @@ -1,8 +1,29 @@ +/*========================================================================= + + Program: KWSys - Kitware System Library + Module: $RCSfile$ + + Copyright (c) Kitware, Inc., Insight Consortium. All rights reserved. + See Copyright.txt or http://www.kitware.com/Copyright.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ #include "kwsysPrivate.h" #include KWSYS_HEADER(hash_map.hxx) #include KWSYS_HEADER(hash_set.hxx) #include KWSYS_HEADER(ios/iostream) +// Work-around CMake dependency scanning limitation. This must +// duplicate the above list of headers. +#if 0 +# include "hash_map.hxx.in" +# include "hash_set.hxx.in" +# include "kwsys_ios_iostream.h.in" +#endif + #if defined(_MSC_VER) # pragma warning (disable:4786) #endif |