Changeset 3196 for code/trunk/cmake/BuildConfigMSVC.cmake
- Timestamp:
- Jun 20, 2009, 9:20:47 AM (16 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
/code/branches/pch (added) merged: 3114-3118,3124-3125,3127-3131,3133,3138-3194
- Property svn:mergeinfo changed
-
code/trunk/cmake/BuildConfigMSVC.cmake
r2710 r3196 24 24 # 25 25 26 ################### Compiler Version #################### 27 28 # We make use of variadic macros, which is only supported by MSVC 8 and above 29 IF(MSVC_VERSION LESS 1400) 30 MESSAGE(FATAL_ERROR "Microsoft Visual Studio versions below 8 (2005) are not supported because of missing compiler extensions.") 31 ENDIF() 32 33 26 34 ######################## Options ######################## 27 35 28 OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" FALSE) 36 # Currently VLD has a problem with MSVC9 although it actually is supported 37 IF(MSVC8) 38 OPTION(VISUAL_LEAK_DETECTOR_ENABLE "Memory leak detector" off) 39 ENDIF() 40 # Make sure the value is "on" or "off" for vld.ini 41 IF(VISUAL_LEAK_DETECTOR_ENABLE) 42 SET(VISUAL_LEAK_DETECTOR_ENABLE on) 43 ELSE() 44 SET(VISUAL_LEAK_DETECTOR_ENABLE off) 45 ENDIF() 46 47 # Orxonox only supports MSVC 8 and above, which gets asserted above 48 SET(PCH_COMPILER_SUPPORT TRUE) 49 29 50 30 51 #################### Compiler Flags ##################### … … 47 68 48 69 # Overwrite CMake default flags here. 49 SET_COMPILER_FLAGS("-MDd -Od -Z I-D_DEBUG -Gm -RTC1" Debug CACHE)70 SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG -Gm -RTC1" Debug CACHE) 50 71 SET_COMPILER_FLAGS("-MD -O2 -DNDEBUG -MP2" Release CACHE) 51 72 SET_COMPILER_FLAGS("-MD -O2 -Zi -DNDEBUG -MP2" RelWithDebInfo CACHE) … … 75 96 # Happens on STL member variables which are not public 76 97 ADD_COMPILER_FLAGS("-w44251" CACHE) 98 ADD_COMPILER_FLAGS("-w44275" CACHE) # For inheritance 77 99 78 100 # Multiple assignment operators specified
Note: See TracChangeset
for help on using the changeset viewer.