Changeset 8650 for code/branches/unity_build/cmake
- Timestamp:
- May 28, 2011, 9:57:45 PM (13 years ago)
- Location:
- code/branches/unity_build/cmake/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/unity_build/cmake/tools/GenerateToluaBindings.cmake
r8363 r8650 58 58 ) 59 59 60 # Disable annoying GCC warnings61 60 IF(CMAKE_COMPILER_IS_GNU) 61 # Disable annoying GCC warnings 62 62 SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES COMPILE_FLAGS "-w") 63 ENDIF() 64 65 IF(MSVC) 66 # Including the file in a build unit is impossible because CMAKE_CFG_INTDIR 67 # exands to an expression that the compiler doesn't understand 68 SET_SOURCE_FILES_PROPERTIES(${_tolua_cxxfile} PROPERTIES EXCLUDE_FROM_BUILD_UNITS TRUE) 63 69 ENDIF() 64 70 -
code/branches/unity_build/cmake/tools/TargetUtilities.cmake
r8649 r8650 182 182 LIST(REMOVE_DUPLICATES _${_target_name}_files) 183 183 184 # Mark files to be excluded from build units185 IF(_arg_EXCLUDE_FROM_BUILD_UNITS)186 SET_SOURCE_FILES_PROPERTIES(${_arg_EXCLUDE_FROM_BUILD_UNITS}187 PROPERTIES EXCLUDE_FROM_BUILD_UNITS TRUE)188 ENDIF()189 190 # Full build units191 IF(NOT _arg_ORXONOX_EXTERNAL AND ENABLE_BUILD_UNITS MATCHES "full")192 GENERATE_BUILD_UNITS(${_target_name} _${_target_name}_files)193 ENDIF()194 195 184 # TOLUA_FILES 196 185 IF(_arg_TOLUA_FILES) … … 204 193 ENDFOREACH(_dir) 205 194 ENDIF() 195 ENDIF() 196 197 # Mark files to be excluded from build units 198 IF(_arg_EXCLUDE_FROM_BUILD_UNITS) 199 SET_SOURCE_FILES_PROPERTIES(${_arg_EXCLUDE_FROM_BUILD_UNITS} 200 PROPERTIES EXCLUDE_FROM_BUILD_UNITS TRUE) 201 ENDIF() 202 203 # Full build units 204 IF(NOT _arg_ORXONOX_EXTERNAL AND ENABLE_BUILD_UNITS MATCHES "full") 205 GENERATE_BUILD_UNITS(${_target_name} _${_target_name}_files) 206 206 ENDIF() 207 207
Note: See TracChangeset
for help on using the changeset viewer.