Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 27, 2011, 5:38:43 AM (13 years ago)
Author:
rgrieder
Message:

Added implementation of full build units.
Please refer to r8569 or OrxonoxConfig.cmake for an explanation of the new option.

File:
1 edited

Legend:

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

    r8569 r8622  
    4444SET(ENABLE_BUILD_UNITS "partial" CACHE STRING "Enables building multiple source files as one.")
    4545IF(ENABLE_BUILD_UNITS)
     46  IF(NOT "${ENABLE_BUILD_UNITS}" STREQUAL "partial")
     47    STRING(REGEX REPLACE "^full([1-9][0-9]?)$" "\\1" _nr_of_units "${ENABLE_BUILD_UNITS}")
     48    IF("${_nr_of_units}" STREQUAL "${ENABLE_BUILD_UNITS}") # Regex match failed
     49      MESSAGE(FATAL_ERROR "Unrecognised option for ENABLE_BUILD_UNITS: ${ENABLE_BUILD_UNITS}")
     50    ELSE()
     51      SET(NR_OF_BUILD_UNITS ${_nr_of_units})
     52    ENDIF()
     53  ENDIF()
    4654  INCLUDE(BuildUnitsConfig.cmake)
    4755ENDIF()
Note: See TracChangeset for help on using the changeset viewer.