Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 15, 2009, 7:53:22 PM (16 years ago)
Author:
rgrieder
Message:
  • Added version info (written by the linker) to all libraries
  • Target dependency bugfix for msvc in doc/api
  • Fixed possibly non existent html directory when installing docs
  • Merged the three Bullet libraries into a single one
  • No warnings at all from third party libraries
  • Performance tweak in ceguilua CMake files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem3/src/ceguilua/CMakeLists.txt

    r2664 r2670  
    3636# Copy package files incrementally until the version is met
    3737SET(CEGUILUA_VERSIONS 0.5.0 0.6.0 0.6.1 0.6.2)
    38 FOREACH(_version ${CEGUILUA_VERSIONS})
    39   COMPARE_VERSION_STRINGS(${_version} ${CEGUI_VERSION} _compare_result)
    40   IF(_compare_result EQUAL 1)
    41     BREAK() # _version > CEGUI_VERSION
    42   ENDIF()
     38# Only copy on version change
     39IF(NOT "${_CEGUI_VERSION_REF}" STREQUAL "${CEGUI_VERSION}"
     40   OR NOT EXISTS ${CEGUILUA_BINARY_DIR}/exceptions.lua)
     41  SET(_CEGUI_VERSION_REF ${CEGUI_VERSION} CACHE INTERNAL "Do not edit")
     42  FOREACH(_version ${CEGUILUA_VERSIONS})
     43    COMPARE_VERSION_STRINGS(${_version} ${CEGUI_VERSION} _compare_result)
     44    IF(_compare_result EQUAL 1)
     45      BREAK() # _version > CEGUI_VERSION
     46    ENDIF()
    4347 
    44   ADD_SUBDIRECTORY(ceguilua-${_version}) # Sets parent scope variable
    45   FOREACH(_file ${_package_files})
    46     CONFIGURE_FILE(ceguilua-${_version}/package/${_file} ${CEGUILUA_BINARY_DIR}/${_file} COPYONLY)
    47   ENDFOREACH(_file)
    48 ENDFOREACH(_version)
     48    ADD_SUBDIRECTORY(ceguilua-${_version}) # Sets parent scope variable _package_files
     49    FOREACH(_file ${_package_files})
     50      CONFIGURE_FILE(ceguilua-${_version}/package/${_file} ${CEGUILUA_BINARY_DIR}/${_file} COPYONLY)
     51    ENDFOREACH(_file)
     52  ENDFOREACH(_version)
     53ENDIF()
    4954
    5055# Create the tolua bind file. We could use the orignal file though, but it is 1.6MB...
     
    6267)
    6368
    64 ADD_COMPILER_FLAGS("-w44996" MSVC)
     69# No warnings needed from third party libraries
     70ADD_COMPILER_FLAGS("-w")
    6571
    6672SOURCE_GROUP("Source" FILES ${CEGUILUA_FILES})
     
    7682)
    7783
     84SET_TARGET_PROPERTIES(ceguilua_orxonox PROPERTIES VERSION ${CEGUI_VERSION})
     85
    7886ORXONOX_INSTALL(ceguilua_orxonox)
Note: See TracChangeset for help on using the changeset viewer.