Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 28, 2011, 10:40:10 PM (13 years ago)
Author:
rgrieder
Message:

Since we already have it now: use automatic full build units for external dependencies, even in "partial" mode.
That will not actually change anything except that Bullet is now built in a single unit instead of 3.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/unity_build/src/external/ois/CMakeLists.txt

    r8625 r8653  
    3434  OISObject.h
    3535  OISPrereqs.h
    36 )
    3736
    38 # Put everything into one single build unit (doens't work on OS X though)
    39 IF(NOT APPLE)
    40   ADD_SOURCE_FILES(OIS_FILES BUILD_UNIT OISBuildUnit.cpp)
    41 ENDIF()
    42 
    43 ADD_SOURCE_FILES(OIS_FILES
    4437  OISEffect.cpp
    4538  OISException.cpp
     
    5043  OISObject.cpp
    5144)
     45
    5246IF(WIN32)
    5347  ADD_SUBDIRECTORY(win32)
     
    5852ENDIF()
    5953
    60 # Close build unit from above
    61 IF(NOT APPLE)
    62   ADD_SOURCE_FILES(OIS_FILES END_BUILD_UNIT)
    63 ENDIF()
    64 
    6554# MinGW doesn't come with some required Windows headers
    6655IF(MINGW)
    6756  INCLUDE_DIRECTORIES(${WMI_INCLUDE_DIR})
     57ENDIF()
     58
     59# Apple has problems with OIS and build units
     60IF(APPLE)
     61  SET(USE_BUILD_UNITS NO_BUILD_UNITS)
    6862ENDIF()
    6963
     
    8276  LINK_LIBS_LINUX
    8377    X11
     78  ${USE_BUILD_UNITS}
    8479  SOURCE_FILES
    8580    ${OIS_FILES}
Note: See TracChangeset for help on using the changeset viewer.