Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7619


Ignore:
Timestamp:
Nov 6, 2010, 2:12:07 PM (13 years ago)
Author:
rgrieder
Message:

Create directories for each build configuration with CMake if the folder would only be created at build time.
This should only concern tolua bind files (*.h and *.cc).

Location:
code/branches/ois_update/cmake/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/ois_update/cmake/tools/GenerateToluaBindings.cmake

    r7415 r7619  
    3232 #    RUNTIME_LIBRARY_DIRECTORY - Working directory
    3333 #
     34
     35# Workaround for XCode: The folder where the bind files are written to has
     36# to be present beforehand.
     37# We have to do this here because the header files are all stored in a single
     38# location per configuration.
     39IF(CMAKE_CONFIGURATION_TYPES)
     40  FOREACH(_dir ${CMAKE_CONFIGURATION_TYPES})
     41    FILE(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/src/toluabind/${_dir}")
     42  ENDFOREACH(_dir)
     43ENDIF()
    3444
    3545FUNCTION(GENERATE_TOLUA_BINDINGS _tolua_package _target_source_files)
  • code/branches/ois_update/cmake/tools/TargetUtilities.cmake

    r7416 r7619  
    119119    GENERATE_TOLUA_BINDINGS(${_target_name_capitalised} _${_target_name}_files
    120120                            INPUTFILES ${_arg_TOLUA_FILES})
     121    # Workaround for XCode: The folder where the bind files are written to has
     122    # to be present beforehand.
     123    IF(CMAKE_CONFIGURATION_TYPES)
     124      FOREACH(_dir ${CMAKE_CONFIGURATION_TYPES})
     125        FILE(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_dir})
     126      ENDFOREACH(_dir)
     127    ENDIF()
    121128  ENDIF()
    122129
Note: See TracChangeset for help on using the changeset viewer.