summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-04-13 20:46:09 (GMT)
committerBrad King <brad.king@kitware.com>2005-04-13 20:46:09 (GMT)
commitcaf54b20931408c1b5d878b1cf2a76147ab61454 (patch)
tree2e36fb6442662190452b2a0653cf5648c6f10e5a /Source/kwsys/SystemTools.cxx
parent826405a1b668900ef4d5ecc0b676197e978bb80f (diff)
downloadCMake-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/SystemTools.cxx')
-rw-r--r--Source/kwsys/SystemTools.cxx10
1 files changed, 10 insertions, 0 deletions
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