Changeset 7247
- Timestamp:
- Aug 29, 2010, 12:04:32 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/cmake/CompilerConfigMSVC.cmake
r7163 r7247 62 62 # -wnX Set warning level of specific warning X to level n 63 63 64 # Overwrite CMake default flags first. Be careful with this 65 # Only add (not set) the general compiler flags. 64 # Only add (not set) some general compiler flags. 66 65 # CMake default flags : -DWIN32 -D_WINDOWS -W3 -Zm1000 67 66 # additionally for CXX: -EHsc -GR 68 ADD_COMPILER_FLAGS("-D__WIN32__ -D_WIN32" CACHE) 67 # -MP is for multiprocessed compiling 68 ADD_COMPILER_FLAGS("-D__WIN32__ -D_WIN32 -MP" CACHE) 69 69 ADD_COMPILER_FLAGS("-D_CRT_SECURE_NO_WARNINGS" CACHE) 70 70 ADD_COMPILER_FLAGS("-D_SCL_SECURE_NO_WARNINGS" CACHE) 71 71 72 # Overwrite CMake default flags here .73 SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG - MP -RTC1" Debug CACHE)74 SET_COMPILER_FLAGS("-MD -O2 -DNDEBUG -MP" Release CACHE)75 SET_COMPILER_FLAGS("-MD -O2 -Zi -DNDEBUG -MP" RelWithDebInfo CACHE)76 SET_COMPILER_FLAGS("-MD -O1 -DNDEBUG -MP" MinSizeRel CACHE)77 ADD_COMPILER_FLAGS("-D_SECURE_SCL=0" MSVC9 ReleaseAllCACHE)72 # Overwrite CMake default flags here for the individual configurations 73 SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG -RTC1" Debug CACHE) 74 SET_COMPILER_FLAGS("-MD -O2 -DNDEBUG" Release CACHE) 75 SET_COMPILER_FLAGS("-MD -O2 -Zi -DNDEBUG" RelWithDebInfo CACHE) 76 SET_COMPILER_FLAGS("-MD -O1 -DNDEBUG" MinSizeRel CACHE) 77 ADD_COMPILER_FLAGS("-D_SECURE_SCL=0" MSVC9 ReleaseAll CACHE) 78 78 79 79 # Use Link time code generation for Release config if ORXONOX_RELEASE is defined
Note: See TracChangeset
for help on using the changeset viewer.