Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8416 for code


Ignore:
Timestamp:
May 8, 2011, 1:38:58 AM (14 years ago)
Author:
rgrieder
Message:

Default link mode for external dependencies should be STATIC for development builds to decrease link time.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/CMakeLists.txt

    r8412 r8416  
    7474ADD_COMPILER_FLAGS("-DTIXML_USE_TICPP")
    7575
    76 # Default linking for externals is SHARED
    77 SET(ORXONOX_EXTERNAL_LINK_MODE "STATIC" CACHE STRING "Link mode for external libraries that we build ourselves. Note: on Windows, some libraries cannot be linked shared.")
     76# Default linking for externals
     77IF(CMAKE_BUILD_TYPE MATCHES "(Debug|RelForDevs)")
     78  SET(_default_link_mode "SHARED")
     79ELSE()
     80  SET(_default_link_mode "STATIC")
     81ENDIF()
     82SET(_message "Link mode for external libraries that we build ourselves. Note: on Windows, some libraries cannot be linked shared.")
     83SET(ORXONOX_EXTERNAL_LINK_MODE "${_default_link_mode}" CACHE STRING "${_message}")
    7884
    7985IF(ORXONOX_EXTERNAL_LINK_MODE STREQUAL "SHARED")
Note: See TracChangeset for help on using the changeset viewer.