diff --git a/kwsysPrivate.h b/kwsysPrivate.h
index 33598969405277d4ff390c3d1cdf80dcb470c23b..2435a85fa28c53c720e0f601c78fba69e6b5ed8b 100644
--- a/kwsysPrivate.h
+++ b/kwsysPrivate.h
@@ -33,6 +33,14 @@
 #define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
 #define KWSYS_HEADER1(x) <x>
 
+/*
+  Define KWSYS_NAMESPACE_STRING to be a string constant containing the
+  name configured for this instance of the kwsys library.
+*/
+#define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
+#define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
+#define KWSYS_NAMESPACE_STRING1(x) #x
+
 #else
 # error "kwsysPrivate.h included multiple times."
 #endif