Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 6, 2010, 2:12:07 PM (14 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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.