Configure.hxx.in 2.69 KB
Newer Older
Kitware Robot's avatar
Kitware Robot committed
1 2
/* Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
   file Copyright.txt or https://cmake.org/licensing#kwsys for details.  */
Kitware Robot's avatar
Kitware Robot committed
3 4 5 6 7 8
#ifndef @KWSYS_NAMESPACE@_Configure_hxx
#define @KWSYS_NAMESPACE@_Configure_hxx

/* Include C configuration.  */
#include <@KWSYS_NAMESPACE@/Configure.h>

Kitware Robot's avatar
Kitware Robot committed
9 10
/* Whether wstring is available.  */
#define @KWSYS_NAMESPACE@_STL_HAS_WSTRING @KWSYS_STL_HAS_WSTRING@
Kitware Robot's avatar
Kitware Robot committed
11
/* Whether <ext/stdio_filebuf.h> is available. */
Kitware Robot's avatar
Kitware Robot committed
12 13
#define @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H                         \
  @KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H@
Kitware Robot's avatar
Kitware Robot committed
14 15 16
/* Whether the translation map is available or not. */
#define @KWSYS_NAMESPACE@_SYSTEMTOOLS_USE_TRANSLATION_MAP                     \
  @KWSYS_SYSTEMTOOLS_USE_TRANSLATION_MAP@
Kitware Robot's avatar
Kitware Robot committed
17

Kitware Robot's avatar
Kitware Robot committed
18
#if defined(__SUNPRO_CC) && __SUNPRO_CC > 0x5130 && defined(__has_attribute)
Kitware Robot's avatar
Kitware Robot committed
19
#  define @KWSYS_NAMESPACE@__has_cpp_attribute(x) __has_attribute(x)
Kitware Robot's avatar
Kitware Robot committed
20
#elif defined(__has_cpp_attribute)
Kitware Robot's avatar
Kitware Robot committed
21
#  define @KWSYS_NAMESPACE@__has_cpp_attribute(x) __has_cpp_attribute(x)
Kitware Robot's avatar
Kitware Robot committed
22
#else
Kitware Robot's avatar
Kitware Robot committed
23
#  define @KWSYS_NAMESPACE@__has_cpp_attribute(x) 0
Kitware Robot's avatar
Kitware Robot committed
24 25
#endif

Kitware Robot's avatar
Kitware Robot committed
26
#if __cplusplus >= 201103L
Kitware Robot's avatar
Kitware Robot committed
27
#  define @KWSYS_NAMESPACE@_NULLPTR nullptr
Kitware Robot's avatar
Kitware Robot committed
28
#else
Kitware Robot's avatar
Kitware Robot committed
29
#  define @KWSYS_NAMESPACE@_NULLPTR 0
Kitware Robot's avatar
Kitware Robot committed
30 31
#endif

Kitware Robot's avatar
Kitware Robot committed
32
#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
Kitware Robot's avatar
Kitware Robot committed
33 34 35 36 37 38 39 40 41 42
#  if __cplusplus >= 201703L &&                                               \
    @KWSYS_NAMESPACE@__has_cpp_attribute(fallthrough)
#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[fallthrough]]
#  elif __cplusplus >= 201103L &&                                             \
    @KWSYS_NAMESPACE@__has_cpp_attribute(gnu::fallthrough)
#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[gnu::fallthrough]]
#  elif __cplusplus >= 201103L &&                                             \
    @KWSYS_NAMESPACE@__has_cpp_attribute(clang::fallthrough)
#    define @KWSYS_NAMESPACE@_FALLTHROUGH [[clang::fallthrough]]
#  endif
Kitware Robot's avatar
Kitware Robot committed
43 44
#endif
#ifndef @KWSYS_NAMESPACE@_FALLTHROUGH
Kitware Robot's avatar
Kitware Robot committed
45
#  define @KWSYS_NAMESPACE@_FALLTHROUGH static_cast<void>(0)
Kitware Robot's avatar
Kitware Robot committed
46 47 48 49
#endif

#undef @KWSYS_NAMESPACE@__has_cpp_attribute

Kitware Robot's avatar
Kitware Robot committed
50 51 52
/* If building a C++ file in kwsys itself, give the source file
   access to the macros without a configured namespace.  */
#if defined(KWSYS_NAMESPACE)
Kitware Robot's avatar
Kitware Robot committed
53 54 55 56 57 58 59 60 61
#  if !@KWSYS_NAMESPACE@_NAME_IS_KWSYS
#    define kwsys @KWSYS_NAMESPACE@
#  endif
#  define KWSYS_NAME_IS_KWSYS @KWSYS_NAMESPACE@_NAME_IS_KWSYS
#  define KWSYS_STL_HAS_WSTRING @KWSYS_NAMESPACE@_STL_HAS_WSTRING
#  define KWSYS_CXX_HAS_EXT_STDIO_FILEBUF_H                                   \
    @KWSYS_NAMESPACE@_CXX_HAS_EXT_STDIO_FILEBUF_H
#  define KWSYS_FALLTHROUGH @KWSYS_NAMESPACE@_FALLTHROUGH
#  define KWSYS_NULLPTR @KWSYS_NAMESPACE@_NULLPTR
Kitware Robot's avatar
Kitware Robot committed
62 63
#  define KWSYS_SYSTEMTOOLS_USE_TRANSLATION_MAP                               \
    @KWSYS_NAMESPACE@_SYSTEMTOOLS_USE_TRANSLATION_MAP
Kitware Robot's avatar
Kitware Robot committed
64 65 66
#endif

#endif