Changeset 8569
- Timestamp:
- May 25, 2011, 2:20:29 AM (14 years ago)
- Location:
- code/branches/unity_build
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/cmake/tools/TargetUtilities.cmake
r8558 r8569 109 109 MESSAGE(FATAL_ERROR "No name provided for build unit") 110 110 ENDIF() 111 IF( NOT DISABLE_BUILD_UNITS)111 IF(ENABLE_BUILD_UNITS) 112 112 IF(NOT _build_unit_include_string) 113 113 MESSAGE(STATUS "Warning: Empty build unit!") … … 147 147 148 148 # Handle build units 149 IF(_add_to_build_unit AND NOT DISABLE_BUILD_UNITS)149 IF(_add_to_build_unit AND ENABLE_BUILD_UNITS) 150 150 IF(_file MATCHES "\\.(c|cc|cpp|cxx)$") 151 151 SET(_build_unit_include_string "${_build_unit_include_string}#include \"${_file}\"\n") -
code/branches/unity_build/src/CMakeLists.txt
r8558 r8569 66 66 ADD_LINKER_FLAGS ("-INCREMENTAL:NO" Debug) 67 67 ENDIF() 68 IF( NOT DISABLE_BUILD_UNITS)68 IF(ENABLE_BUILD_UNITS) 69 69 # Build units seem to generate 'memory leaks' with static variables 70 70 MESSAGE("Warning: You should disable build units when using VLD!") -
code/branches/unity_build/src/OrxonoxConfig.cmake
r8558 r8569 34 34 ENDIF() 35 35 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 44 SET(ENABLE_BUILD_UNITS "partial" CACHE STRING "Enables building multiple source files as one.") 45 IF(ENABLE_BUILD_UNITS) 46 INCLUDE(BuildUnitsConfig.cmake) 47 ENDIF() 38 48 39 49 # Use WinMain() or main()?
Note: See TracChangeset
for help on using the changeset viewer.