cmConfigure.cmake.h.in 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmConfigure_h
  4. #define cmConfigure_h
  5. #include "cmsys/Configure.hxx" // IWYU pragma: export
  6. #ifdef _MSC_VER
  7. #pragma warning(disable : 4786)
  8. #pragma warning(disable : 4503)
  9. #endif
  10. #ifdef __ICL
  11. #pragma warning(disable : 985)
  12. #pragma warning(disable : 1572) /* floating-point equality test */
  13. #endif
  14. #cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
  15. #cmakedefine HAVE_UNSETENV
  16. #cmakedefine CMAKE_USE_ELF_PARSER
  17. #cmakedefine CMAKE_USE_MACH_PARSER
  18. #cmakedefine CMake_HAVE_CXX_AUTO_PTR
  19. #cmakedefine CMake_HAVE_CXX_EQ_DELETE
  20. #cmakedefine CMake_HAVE_CXX_FALLTHROUGH
  21. #cmakedefine CMake_HAVE_CXX_GNU_FALLTHROUGH
  22. #cmakedefine CMake_HAVE_CXX_ATTRIBUTE_FALLTHROUGH
  23. #cmakedefine CMake_HAVE_CXX_MAKE_UNIQUE
  24. #cmakedefine CMake_HAVE_CXX_NULLPTR
  25. #cmakedefine CMake_HAVE_CXX_OVERRIDE
  26. #cmakedefine CMake_HAVE_CXX_UNIQUE_PTR
  27. #cmakedefine CMake_HAVE_CXX_UNORDERED_MAP
  28. #cmakedefine CMake_HAVE_CXX_UNORDERED_SET
  29. #define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
  30. #define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"
  31. #ifdef CMake_HAVE_CXX_EQ_DELETE
  32. #define CM_EQ_DELETE = delete
  33. #else
  34. #define CM_EQ_DELETE
  35. #endif
  36. #if defined(CMake_HAVE_CXX_FALLTHROUGH)
  37. #define CM_FALLTHROUGH [[fallthrough]]
  38. #elif defined(CMake_HAVE_CXX_GNU_FALLTHROUGH)
  39. #define CM_FALLTHROUGH [[gnu::fallthrough]]
  40. elif defined(CMake_HAVE_CXX_ATTRIBUTE_FALLTHROUGH)
  41. #define CM_FALLTHROUGH __attribute__((fallthrough))
  42. #else
  43. #define CM_FALLTHROUGH
  44. #endif
  45. #ifdef CMake_HAVE_CXX_NULLPTR
  46. #define CM_NULLPTR nullptr
  47. #else
  48. #define CM_NULLPTR 0
  49. #endif
  50. #ifdef CMake_HAVE_CXX_OVERRIDE
  51. #define CM_OVERRIDE override
  52. #else
  53. #define CM_OVERRIDE
  54. #endif
  55. #define CM_DISABLE_COPY(Class) \
  56. Class(Class const&) CM_EQ_DELETE; \
  57. Class& operator=(Class const&) CM_EQ_DELETE;
  58. #endif