Changeset 5691
- Timestamp:
- Aug 29, 2009, 10:05:55 PM (15 years ago)
- Location:
- code/branches/resource2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/CMakeLists.txt
r5664 r5691 89 89 ENDIF() 90 90 91 # Enable expensive optimisations: use this for a binary release build 92 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE) 93 91 94 ########### Subfolders and Subscripts ########### 92 95 -
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() -
code/branches/resource2/src/OrxonoxConfig.cmake
r5664 r5691 38 38 OPTION(PCH_ENABLE "Global PCH switch" TRUE) 39 39 ENDIF() 40 41 # Enable expensive optimisations: use this for a binary release build42 OPTION(ORXONOX_RELEASE "Enable when building restributable releases" FALSE)43 40 44 41 # Use WinMain() or main()?
Note: See TracChangeset
for help on using the changeset viewer.