Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7440


Ignore:
Timestamp:
Sep 13, 2010, 1:30:54 AM (14 years ago)
Author:
rgrieder
Message:

Fixed MSVC linker flag handling.

File:
1 edited

Legend:

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

    r7379 r7440  
    149149# CMake default flags: -MANIFEST -STACK:10000000 -machine:I386
    150150# and INCREMENTAL and DEBUG for debug versions
    151 ADD_LINKER_FLAGS("-OPT:REF -OPT:ICF" Release MinSizeRel CACHE)
     151SET_LINKER_FLAGS("-debug -INCREMENTAL:YES" Debug              CACHE)
     152SET_LINKER_FLAGS("-debug"                  RelWithDebInfo     CACHE)
     153SET_LINKER_FLAGS(""                        Release MinSizeRel CACHE)
     154
    152155ADD_LINKER_FLAGS("-OPT:NOWIN98" MSVC80 CACHE)
    153 REMOVE_LINKER_FLAGS("-INCREMENTAL:NO"  RelWithDebInfo CACHE)
    154 ADD_LINKER_FLAGS   ("-INCREMENTAL:YES" RelWithDebInfo CACHE)
    155156
    156157# Use Link time code generation for Release config if ORXONOX_RELEASE is defined
    157158IF(ORXONOX_RELEASE)
    158   REMOVE_LINKER_FLAGS("-INCREMENTAL:YES" ReleaseAll CACHE)
    159   ADD_LINKER_FLAGS   ("-INCREMENTAL:NO"  ReleaseAll CACHE)
    160   ADD_LINKER_FLAGS   ("-LTCG"            ReleaseAll CACHE)
     159  ADD_LINKER_FLAGS("-INCREMENTAL:NO -OPT:ICF -OPT:REF -LTCG" ReleaseAll   CACHE)
     160ELSE()
     161  ADD_LINKER_FLAGS("-INCREMENTAL:YES"                  RelWithDebInfo     CACHE)
     162  ADD_LINKER_FLAGS("-INCREMENTAL:NO -OPT:ICF -OPT:REF" Release MinSizeRel CACHE)
    161163ENDIF()
Note: See TracChangeset for help on using the changeset viewer.