Changeset 8622 for code/branches/unity_build/src/OrxonoxConfig.cmake
- Timestamp:
- May 27, 2011, 5:38:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/src/OrxonoxConfig.cmake
r8569 r8622 44 44 SET(ENABLE_BUILD_UNITS "partial" CACHE STRING "Enables building multiple source files as one.") 45 45 IF(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() 46 54 INCLUDE(BuildUnitsConfig.cmake) 47 55 ENDIF()
Note: See TracChangeset
for help on using the changeset viewer.