Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7247


Ignore:
Timestamp:
Aug 29, 2010, 12:04:32 PM (14 years ago)
Author:
rgrieder
Message:

Cosmetic changes in CompilerConfigMSVC.cmake.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/cmake/CompilerConfigMSVC.cmake

    r7163 r7247  
    6262# -wnX   Set warning level of specific warning X to level n
    6363
    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.
    6665# CMake default flags : -DWIN32 -D_WINDOWS -W3 -Zm1000
    6766# additionally for CXX: -EHsc -GR
    68 ADD_COMPILER_FLAGS("-D__WIN32__ -D_WIN32"      CACHE)
     67# -MP is for multiprocessed compiling
     68ADD_COMPILER_FLAGS("-D__WIN32__ -D_WIN32 -MP"  CACHE)
    6969ADD_COMPILER_FLAGS("-D_CRT_SECURE_NO_WARNINGS" CACHE)
    7070ADD_COMPILER_FLAGS("-D_SCL_SECURE_NO_WARNINGS" CACHE)
    7171
    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 ReleaseAll CACHE)
     72# Overwrite CMake default flags here for the individual configurations
     73SET_COMPILER_FLAGS("-MDd -Od -Zi -D_DEBUG -RTC1" Debug          CACHE)
     74SET_COMPILER_FLAGS("-MD  -O2     -DNDEBUG"       Release        CACHE)
     75SET_COMPILER_FLAGS("-MD  -O2 -Zi -DNDEBUG"       RelWithDebInfo CACHE)
     76SET_COMPILER_FLAGS("-MD  -O1     -DNDEBUG"       MinSizeRel     CACHE)
     77ADD_COMPILER_FLAGS("-D_SECURE_SCL=0"       MSVC9 ReleaseAll    CACHE)
    7878
    7979# Use Link time code generation for Release config if ORXONOX_RELEASE is defined
Note: See TracChangeset for help on using the changeset viewer.