2017-04-14 19:02:05 +02:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing#kwsys for details. */
|
2008-10-12 18:41:06 +02:00
|
|
|
#ifndef KWSYS_NAMESPACE
|
2018-08-09 18:06:22 +02:00
|
|
|
# error "Do not include kwsysPrivate.h outside of kwsys c and cxx files."
|
2008-10-12 18:41:06 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _kwsysPrivate_h
|
2018-08-09 18:06:22 +02:00
|
|
|
# define _kwsysPrivate_h
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
Define KWSYS_HEADER macro to help the c and cxx files include kwsys
|
|
|
|
headers from the configured namespace directory. The macro can be
|
|
|
|
used like this:
|
2009-10-04 10:30:41 +03:00
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
#include KWSYS_HEADER(Directory.hxx)
|
|
|
|
#include KWSYS_HEADER(std/vector)
|
|
|
|
*/
|
2017-04-14 19:02:05 +02:00
|
|
|
/* clang-format off */
|
2008-10-12 18:41:06 +02:00
|
|
|
#define KWSYS_HEADER(x) KWSYS_HEADER0(KWSYS_NAMESPACE/x)
|
2017-04-14 19:02:05 +02:00
|
|
|
/* clang-format on */
|
2018-08-09 18:06:22 +02:00
|
|
|
# define KWSYS_HEADER0(x) KWSYS_HEADER1(x)
|
|
|
|
# define KWSYS_HEADER1(x) <x>
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
Define KWSYS_NAMESPACE_STRING to be a string constant containing the
|
|
|
|
name configured for this instance of the kwsys library.
|
|
|
|
*/
|
2018-08-09 18:06:22 +02:00
|
|
|
# define KWSYS_NAMESPACE_STRING KWSYS_NAMESPACE_STRING0(KWSYS_NAMESPACE)
|
|
|
|
# define KWSYS_NAMESPACE_STRING0(x) KWSYS_NAMESPACE_STRING1(x)
|
|
|
|
# define KWSYS_NAMESPACE_STRING1(x) # x
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
#else
|
2018-08-09 18:06:22 +02:00
|
|
|
# error "kwsysPrivate.h included multiple times."
|
2008-10-12 18:41:06 +02:00
|
|
|
#endif
|