kwsysPrivate.h
Go to the documentation of this file.
1 /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
2  file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
3 #ifndef KWSYS_NAMESPACE
4 # error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
5 #endif
6 
7 #ifndef _kwsysPrivate_h
8 # define _kwsysPrivate_h
9 
10 /*
11  Define KWSYS_HEADER macro to help the c and cxx files include kwsys
12  headers from the configured namespace directory. The macro can be
13  used like this:
14 
15  #include KWSYS_HEADER(Directory.hxx)
16  #include KWSYS_HEADER(std/vector)
17 */
18 /* clang-format off */
19 #define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
20 /* clang-format on */
21 # define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
22 # define KWSYS_HEADER1(x) <x>
23 
24 /*
25  Define KWSYS_NAMESPACE_STRING to be a string constant containing the
26  name configured for this instance of the kwsys library.
27 */
28 # define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
29 # define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
30 # define KWSYS_NAMESPACE_STRING1(x) # x
31 
32 #else
33 # error "kwsysPrivate.h included multiple times."
34 #endif