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/testCommandLineArguments.cxx | |
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/testCommandLineArguments.cxx')
-rw-r--r-- | Source/kwsys/testCommandLineArguments.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
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) |