Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 10, 2008, 9:45:35 PM (16 years ago)
Author:
adrfried
Message:

tolua fixed for mingw, libtolua linked statically

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem/cmake/UseTolua.cmake

    r2243 r2399  
    1818SET(_tolua_executable_name toluaexe_orxonox)
    1919GET_TARGET_PROPERTY(TOLUA_EXECUTABLE "${_tolua_executable_name}" LOCATION)
     20IF(MINGW_LIBRARY_DIR)
     21  SET(_tolua_command_wd "WORKING_DIRECTORY;${MINGW_LIBRARY_DIR}/lua-5.1.3/lib")
     22ELSE(MINGW_LIBRARY_DIR)
     23  SET(_tolua_command_wd)
     24ENDIF(MINGW_LIBRARY_DIR)
    2025
    2126MACRO(TOLUA _tolua_package _tolua_srcfiles_varname)
     
    4550    DEPENDS "${_tolua_executable_name}" ${TOLUA_PARSER_DEPENDENCIES}
    4651    IMPLICIT_DEPENDS CXX ${_tolua_inputfiles}
    47     WORKING_DIRECTORY "${LIBRARY_OUTPUT_PATH}"
     52    ${_tolua_command_wd}
    4853  )
    4954ENDMACRO(TOLUA)
Note: See TracChangeset for help on using the changeset viewer.