CMakeWindowsSystemConfig.cmake 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # Microsoft specific config file
  2. SET (CMAKE_CXX_COMPILER cl CACHE STRING
  3. "Name of C++ compiler used.")
  4. SET (CMAKE_CXX_FLAGS_RELEASE "/MD /O2" CACHE STRING
  5. "Flags used by the compiler during release builds (/MD /Ob1 /Oi /Ot /Oy /Gs will produce slightly less optimized but smaller files)")
  6. SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MD /Zi /O2" CACHE STRING
  7. "Flags used by the compiler during Release with Debug Info builds")
  8. SET (CMAKE_CXX_FLAGS_MINSIZEREL "/MD /O1" CACHE STRING
  9. "Flags used by the compiler during release minsize builds")
  10. SET (CMAKE_CXX_FLAGS_DEBUG "/MDd /Zi /Od /GZ" CACHE STRING
  11. "Flags used by the compiler during debug builds")
  12. SET (CMAKE_CXX_FLAGS "/W3 /Zm1000 /GX /GR" CACHE STRING
  13. "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")
  14. SET (CMAKE_EXTRA_LINK_FLAGS "/STACK:10000000" CACHE STRING
  15. "Extra flags added to the link line for creation of exe and dlls.")
  16. SET (CMAKE_USE_WIN32_THREADS 1 CACHE BOOL
  17. "Use the win32 thread library")
  18. SET (CMAKE_MAKE_PROGRAM "msdev" CACHE STRING
  19. "Program used to build from dsp files.")
  20. # We will hardcode them for now. Make sure to fix that in the future
  21. SET (CMAKE_SIZEOF_INT 4 CACHE INTERNAL "Size of int data type")
  22. SET (CMAKE_SIZEOF_LONG 4 CACHE INTERNAL "Size of long data type")
  23. SET (CMAKE_SIZEOF_VOID_P 4 CACHE INTERNAL "Size of void* data type")
  24. SET (CMAKE_SIZEOF_CHAR 1 CACHE INTERNAL "Size of char data type")
  25. SET (CMAKE_SIZEOF_SHORT 2 CACHE INTERNAL "Size of short data type")
  26. SET (CMAKE_SIZEOF_FLOAT 4 CACHE INTERNAL "Size of float data type")
  27. SET (CMAKE_SIZEOF_DOUBLE 8 CACHE INTERNAL "Size of double data type")
  28. # The following variables are advanced
  29. MARK_AS_ADVANCED(
  30. WORDS_BIGENDIAN
  31. HAVE_UNISTD_H
  32. HAVE_LIMITS_H
  33. CMAKE_CXX_COMPILER
  34. CMAKE_CXX_FLAGS_RELEASE
  35. CMAKE_CXX_FLAGS_RELWITHDEBINFO
  36. CMAKE_CXX_FLAGS_MINSIZEREL
  37. CMAKE_CXX_FLAGS_DEBUG
  38. CMAKE_USE_WIN32_THREADS
  39. CMAKE_MAKE_PROGRAM
  40. CMAKE_EXTRA_LINK_FLAGS
  41. )