Configure.h.in 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  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@_Configure_h
  4. #define @KWSYS_NAMESPACE@_Configure_h
  5. /* If we are building a kwsys .c or .cxx file, let it use the kwsys
  6. namespace. When not building a kwsys source file these macros are
  7. temporarily defined inside the headers that use them. */
  8. #if defined(KWSYS_NAMESPACE)
  9. # define kwsys_ns(x) @KWSYS_NAMESPACE@##x
  10. # define kwsysEXPORT @KWSYS_NAMESPACE@_EXPORT
  11. #endif
  12. /* Disable some warnings inside kwsys source files. */
  13. #if defined(KWSYS_NAMESPACE)
  14. # if defined(__INTEL_COMPILER)
  15. # pragma warning(disable : 1572) /* floating-point equality test */
  16. # endif
  17. # if defined(__sgi) && !defined(__GNUC__)
  18. # pragma set woff 3970 /* pointer to int conversion */
  19. # pragma set woff 3968 /* 64 bit conversion */
  20. # endif
  21. #endif
  22. /* Whether kwsys namespace is "kwsys". */
  23. #define @KWSYS_NAMESPACE@_NAME_IS_KWSYS @KWSYS_NAME_IS_KWSYS@
  24. /* Setup the export macro. */
  25. #if @KWSYS_BUILD_SHARED@
  26. # if defined(_WIN32) || defined(__CYGWIN__)
  27. # if defined(@KWSYS_NAMESPACE@_EXPORTS)
  28. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllexport)
  29. # else
  30. # define @KWSYS_NAMESPACE@_EXPORT __declspec(dllimport)
  31. # endif
  32. # elif __GNUC__ >= 4
  33. # define @KWSYS_NAMESPACE@_EXPORT __attribute__((visibility("default")))
  34. # else
  35. # define @KWSYS_NAMESPACE@_EXPORT
  36. # endif
  37. #else
  38. # define @KWSYS_NAMESPACE@_EXPORT
  39. #endif
  40. /* Enable warnings that are off by default but are useful. */
  41. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_ENABLE)
  42. # if defined(_MSC_VER)
  43. # pragma warning(default : 4263) /* no override, call convention differs \
  44. */
  45. # endif
  46. #endif
  47. /* Disable warnings that are on by default but occur in valid code. */
  48. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE)
  49. # if defined(_MSC_VER)
  50. # pragma warning(disable : 4097) /* typedef is synonym for class */
  51. # pragma warning(disable : 4127) /* conditional expression is constant */
  52. # pragma warning(disable : 4244) /* possible loss in conversion */
  53. # pragma warning(disable : 4251) /* missing DLL-interface */
  54. # pragma warning(disable : 4305) /* truncation from type1 to type2 */
  55. # pragma warning(disable : 4309) /* truncation of constant value */
  56. # pragma warning(disable : 4514) /* unreferenced inline function */
  57. # pragma warning(disable : 4706) /* assignment in conditional expression \
  58. */
  59. # pragma warning(disable : 4710) /* function not inlined */
  60. # pragma warning(disable : 4786) /* identifier truncated in debug info */
  61. # endif
  62. #endif
  63. /* MSVC 6.0 in release mode will warn about code it produces with its
  64. optimizer. Disable the warnings specifically for this
  65. configuration. Real warnings will be revealed by a debug build or
  66. by other compilers. */
  67. #if !defined(@KWSYS_NAMESPACE@_NO_WARNING_DISABLE_BOGUS)
  68. # if defined(_MSC_VER) && (_MSC_VER < 1300) && defined(NDEBUG)
  69. # pragma warning(disable : 4701) /* Variable may be used uninitialized. */
  70. # pragma warning(disable : 4702) /* Unreachable code. */
  71. # endif
  72. #endif
  73. #endif