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/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)
Note: See TracChangeset for help on using the changeset viewer.