CMakeVS7BackwardCompatibility.cmake 1.4 KB

1234567891011121314151617181920212223242526
  1. #=============================================================================
  2. # Copyright 2002-2009 Kitware, Inc.
  3. #
  4. # Distributed under the OSI-approved BSD License (the "License");
  5. # see accompanying file Copyright.txt for details.
  6. #
  7. # This software is distributed WITHOUT ANY WARRANTY; without even the
  8. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  9. # See the License for more information.
  10. #=============================================================================
  11. # (To distribute this file outside of CMake, substitute the full
  12. # License text for the above reference.)
  13. # hard code these for fast backwards compatibility tests
  14. set (CMAKE_SIZEOF_INT 4 CACHE INTERNAL "Size of int data type")
  15. set (CMAKE_SIZEOF_LONG 4 CACHE INTERNAL "Size of long data type")
  16. set (CMAKE_SIZEOF_VOID_P 4 CACHE INTERNAL "Size of void* data type")
  17. set (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
  18. set (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
  19. set (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
  20. set (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
  21. set (CMAKE_NO_ANSI_FOR_SCOPE 0 CACHE INTERNAL
  22. "Does the compiler support ansi for scope.")
  23. set (CMAKE_USE_WIN32_THREADS TRUE CACHE BOOL "Use the win32 thread library.")
  24. set (CMAKE_WORDS_BIGENDIAN 0 CACHE INTERNAL "endianness of bytes")