Changeset 5691 for code/branches/resource2/cmake
- Timestamp:
- Aug 29, 2009, 10:05:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/cmake/CompilerConfigMSVC.cmake
r5664 r5691 75 75 SET_COMPILER_FLAGS("-MD -O1 -DNDEBUG -MP2" MinSizeRel CACHE) 76 76 77 # Microsoft unfortunately couldn't integrate a fix issued while VS 2008 beta 2 78 # was being tested into the final release even though a fix existed... 79 # And it's actually quite a big issue, you simple can't compile anything. 80 # Fortunately for us, disabling Minimal Rebuild solves the problem. 81 REMOVE_COMPILER_FLAGS("-Gm" Debug MSVC09 CACHE) 82 # And since we have to remove /Gm, let's add /MP2 to speed things up 83 ADD_COMPILER_FLAGS("-MP2" Debug MSVC09 CACHE) 77 # Use Link time code generation for Release config if ORXONOX_RELEASE is defined 78 IF(ORXONOX_RELEASE) 79 ADD_COMPILER_FLAGS("-GL" ReleaseAll CACHE) 80 ENDIF() 84 81 85 82 … … 149 146 ADD_LINKER_FLAGS("-OPT:REF -OPT:ICF" Release MinSizeRel CACHE) 150 147 ADD_LINKER_FLAGS("-OPT:NOWIN98" MSVC80 CACHE) 148 149 # Use Link time code generation for Release config if ORXONOX_RELEASE is defined 150 IF(ORXONOX_RELEASE) 151 ADD_LINKER_FLAGS("-LTCG" ReleaseAll CACHE) 152 ENDIF()
Note: See TracChangeset
for help on using the changeset viewer.