Changeset 8729 for code/trunk/src/OrxonoxConfig.cmake
- Timestamp:
- Jul 4, 2011, 2:47:44 AM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
-
code/trunk/src/OrxonoxConfig.cmake
r8412 r8729 34 34 ENDIF() 35 35 36 # Global switch to disable multiple file compilations 37 OPTION(DISABLE_COMPILATIONS "Global multi-file compilation switch" 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 44 SET(ENABLE_BUILD_UNITS "partial" CACHE STRING "Enables building multiple source files as one.") 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 IF(NOT HAVE_COUNTER_MACRO) 53 MESSAGE(WARNING "Your compiler doesn't support the __COUNTER__ macro. Full build units might not work!") 54 ENDIF() 55 ENDIF() 56 ENDIF() 57 IF(CMAKE_COMPILER_IS_GNU) 58 INCLUDE(BuildUnitsConfigGCC.cmake) 59 ELSEIF(MSVC) 60 INCLUDE(BuildUnitsConfigMSVC.cmake) 61 ENDIF() 62 ENDIF() 38 63 39 64 # Use WinMain() or main()?
Note: See TracChangeset
for help on using the changeset viewer.