mirror of
https://github.com/reactos/CMake.git
synced 2024-12-17 16:46:37 +00:00
70 lines
1.9 KiB
C
70 lines
1.9 KiB
C
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
|
#ifndef cmConfigure_h
|
|
#define cmConfigure_h
|
|
|
|
#include "cmsys/Configure.hxx" // IWYU pragma: export
|
|
|
|
#ifdef _MSC_VER
|
|
#pragma warning(disable : 4786)
|
|
#pragma warning(disable : 4503)
|
|
#endif
|
|
|
|
#ifdef __ICL
|
|
#pragma warning(disable : 985)
|
|
#pragma warning(disable : 1572) /* floating-point equality test */
|
|
#endif
|
|
|
|
#cmakedefine HAVE_ENVIRON_NOT_REQUIRE_PROTOTYPE
|
|
#cmakedefine HAVE_UNSETENV
|
|
#cmakedefine CMAKE_USE_ELF_PARSER
|
|
#cmakedefine CMAKE_USE_MACH_PARSER
|
|
#cmakedefine CMAKE_USE_LIBUV
|
|
#cmakedefine CMake_HAVE_CXX_AUTO_PTR
|
|
#cmakedefine CMake_HAVE_CXX_EQ_DELETE
|
|
#cmakedefine CMake_HAVE_CXX_FALLTHROUGH
|
|
#cmakedefine CMake_HAVE_CXX_GNU_FALLTHROUGH
|
|
#cmakedefine CMake_HAVE_CXX_ATTRIBUTE_FALLTHROUGH
|
|
#cmakedefine CMake_HAVE_CXX_MAKE_UNIQUE
|
|
#cmakedefine CMake_HAVE_CXX_NULLPTR
|
|
#cmakedefine CMake_HAVE_CXX_OVERRIDE
|
|
#cmakedefine CMake_HAVE_CXX_UNIQUE_PTR
|
|
#cmakedefine CMake_HAVE_CXX_UNORDERED_MAP
|
|
#cmakedefine CMake_HAVE_CXX_UNORDERED_SET
|
|
#define CMAKE_BIN_DIR "/@CMAKE_BIN_DIR@"
|
|
#define CMAKE_DATA_DIR "/@CMAKE_DATA_DIR@"
|
|
|
|
#ifdef CMake_HAVE_CXX_EQ_DELETE
|
|
#define CM_EQ_DELETE = delete
|
|
#else
|
|
#define CM_EQ_DELETE
|
|
#endif
|
|
|
|
#if defined(CMake_HAVE_CXX_FALLTHROUGH)
|
|
#define CM_FALLTHROUGH [[fallthrough]]
|
|
#elif defined(CMake_HAVE_CXX_GNU_FALLTHROUGH)
|
|
#define CM_FALLTHROUGH [[gnu::fallthrough]]
|
|
elif defined(CMake_HAVE_CXX_ATTRIBUTE_FALLTHROUGH)
|
|
#define CM_FALLTHROUGH __attribute__((fallthrough))
|
|
#else
|
|
#define CM_FALLTHROUGH
|
|
#endif
|
|
|
|
#ifdef CMake_HAVE_CXX_NULLPTR
|
|
#define CM_NULLPTR nullptr
|
|
#else
|
|
#define CM_NULLPTR 0
|
|
#endif
|
|
|
|
#ifdef CMake_HAVE_CXX_OVERRIDE
|
|
#define CM_OVERRIDE override
|
|
#else
|
|
#define CM_OVERRIDE
|
|
#endif
|
|
|
|
#define CM_DISABLE_COPY(Class) \
|
|
Class(Class const&) CM_EQ_DELETE; \
|
|
Class& operator=(Class const&) CM_EQ_DELETE;
|
|
|
|
#endif
|