diff --git a/Source/kwsys/Base64.c b/Source/kwsys/Base64.c index 0c5e44f27..896042825 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 de30952a8..dcd9a6412 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 #include #include diff --git a/Source/kwsys/Directory.cxx b/Source/kwsys/Directory.cxx index 40425efa0..e98c25944 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 c36a13736..849f6b9bf 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 7175d1b51..730448a5e 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 707c70ac9..bb9e9b164 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 #include diff --git a/Source/kwsys/SystemTools.cxx b/Source/kwsys/SystemTools.cxx index c439775cd..235e4f66a 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 19f5c9b24..137f83e35 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 5ae01310e..de7cf8c82 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 a6f33d852..d699ae591 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 e8dc53d52..16f77798f 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 #include #include diff --git a/Source/kwsys/testSystemTools.cxx b/Source/kwsys/testSystemTools.cxx index 600ed5a57..ac575a999 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 8360a187f..609f20d4b 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