Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7807 for code/forks


Ignore:
Timestamp:
Dec 26, 2010, 12:00:59 AM (13 years ago)
Author:
rgrieder
Message:

Adding static linker flags (used by MSVC only).

Location:
code/forks/sandbox_qt/cmake
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/forks/sandbox_qt/cmake/CompilerConfigMSVC.cmake

    r7806 r7807  
    147147IF(ORXONOX_RELEASE)
    148148  ADD_LINKER_FLAGS("-INCREMENTAL:NO -OPT:ICF -OPT:REF -LTCG" ReleaseAll   CACHE)
     149  # Static linker flags have to be added manually to a target
     150  SET(ORXONOX_STATIC_LINKER_FLAGS "/LTCG")
    149151ELSE()
    150152  ADD_LINKER_FLAGS("-INCREMENTAL:YES"                  RelWithDebInfo     CACHE)
  • code/forks/sandbox_qt/cmake/tools/TargetUtilities.cmake

    r7805 r7807  
    252252  ENDIF()
    253253
     254  # Static library flags are not globally available
     255  IF(ORXONOX_STATIC_LINKER_FLAGS)
     256    SET_TARGET_PROPERTIES(${_target_name} PROPERTIES STATIC_LIBRARY_FLAGS ${ORXONOX_STATIC_LINKER_FLAGS})
     257  ENDIF()
     258
    254259  # LINK_LIBRARIES
    255260  IF(_arg_LINK_LIBRARIES)
Note: See TracChangeset for help on using the changeset viewer.