CMakeWindowsSystemConfig.cmake 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. # Microsoft specific config file
  2. SET (CMAKE_BUILD_TOOL msdev CACHE INTERNAL
  3. "What is the target build tool cmake is generating for.")
  4. SET (CMAKE_SYSTEM "Win32" CACHE INTERNAL
  5. "What system is this. Result of uname.")
  6. SET (CMAKE_CXX_COMPILER cl CACHE STRING
  7. "Name of C++ compiler used.")
  8. SET (CMAKE_CXX_FLAGS_RELEASE "/MD /O2" CACHE STRING
  9. "Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files)")
  10. SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MD /Zi /O2" CACHE STRING
  11. "Flags used by the compiler during Release with Debug Info builds")
  12. SET (CMAKE_CXX_FLAGS_MINSIZEREL "/MD /O1" CACHE STRING
  13. "Flags used by the compiler during release minsize builds")
  14. SET (CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Od /GZ" CACHE STRING
  15. "Flags used by the compiler during debug builds")
  16. SET (CMAKE_CXX_FLAGS "/nologo /W3 /Zm1000 /GX /GR" CACHE STRING
  17. "Flags used by the compiler during all build types, /GX /GR are for exceptions and rtti in VC++, /Zm1000 increases the compiler's memory allocation to support ANSI C++/stdlib")
  18. SET (CMAKE_EXTRA_LINK_FLAGS "/STACK:10000000" CACHE STRING
  19. "Extra flags added to the link line for creation of exe and dlls.")
  20. SET (CMAKE_USE_WIN32_THREADS 1 CACHE BOOL
  21. "Use the win32 thread library")
  22. SET (CMAKE_MAKE_PROGRAM "msdev" CACHE STRING
  23. "Program used to build from dsp files.")
  24. # We will hardcode them for now. Make sure to fix that in the future
  25. SET (CMAKE_SIZEOF_INT 4 CACHE INTERNAL "Size of int data type")
  26. SET (CMAKE_SIZEOF_LONG 4 CACHE INTERNAL "Size of long data type")
  27. SET (CMAKE_SIZEOF_VOID_P 4 CACHE INTERNAL "Size of void* data type")
  28. SET (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
  29. SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
  30. SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
  31. SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
  32. # Suffixes
  33. SET (CMAKE_EXECUTABLE_SUFFIX ".exe" CACHE INTERNAL
  34. "Executable suffix.")
  35. SET (CMAKE_MODULE_SUFFIX ".dll" CACHE INTERNAL
  36. "Module library suffix.")
  37. SET (CMAKE_SHLIB_SUFFIX ".dll" CACHE INTERNAL
  38. "Shared library suffix.")
  39. SET (CMAKE_STATICLIB_SUFFIX ".lib" CACHE INTERNAL
  40. "Static library suffix.")
  41. # The following variables are advanced
  42. MARK_AS_ADVANCED(
  43. CMAKE_CXX_COMPILER
  44. CMAKE_CXX_FLAGS
  45. CMAKE_CXX_FLAGS_DEBUG
  46. CMAKE_CXX_FLAGS_MINSIZEREL
  47. CMAKE_CXX_FLAGS_RELEASE
  48. CMAKE_CXX_FLAGS_RELWITHDEBINFO
  49. CMAKE_EXECUTABLE_SUFFIX
  50. CMAKE_EXTRA_LINK_FLAGS
  51. CMAKE_MAKE_PROGRAM
  52. CMAKE_MODULE_SUFFIX
  53. CMAKE_OBJECT_FILE_SUFFIX
  54. CMAKE_SHLIB_SUFFIX
  55. CMAKE_STATICLIB_SUFFIX
  56. CMAKE_USE_WIN32_THREADS
  57. HAVE_LIMITS_H
  58. HAVE_UNISTD_H
  59. WORDS_BIGENDIAN
  60. )