Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2011, 2:20:29 AM (13 years ago)
Author:
rgrieder
Message:

Changed binary CMake option DISABLE_BUILD_UNITS to string option ENABLE_BUILD_UNITS with the following possible values:
off/false: Turn off completely
partial: Only combine files explicitly specified with BUILD_UNIT
full##: Use ## source files per orxonox library and use manual build units

for external dependencies. Example: full8 will in general use 8
source files per library, but more specifically tries to occupy
8 CPU threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/OrxonoxConfig.cmake

    r8558 r8569  
    3434ENDIF()
    3535
    36 # Global switch to disable multiple file compilations
    37 OPTION(DISABLE_BUILD_UNITS "Disables building multiple source files as one." FALSE)
     36# Global option to steer building muliple files as a single one
     37# off/false: Turn off completely
     38# partial:   Only combine files explicitly specified with BUILD_UNIT
     39# full##:    Use ## source files per orxonox library and use manual build units
     40#            for external dependencies. Example: full8 will in general use 8
     41#            source files per library, but more specifically tries to occupy
     42#            8 CPU threads.
     43#            This is configured manually in BuildUnitsConfig.cmake
     44SET(ENABLE_BUILD_UNITS "partial" CACHE STRING "Enables building multiple source files as one.")
     45IF(ENABLE_BUILD_UNITS)
     46  INCLUDE(BuildUnitsConfig.cmake)
     47ENDIF()
    3848
    3949# Use WinMain() or main()?
Note: See TracChangeset for help on using the changeset viewer.