fixed out-of-source luac file generation

This commit is contained in:
Félix C. Morency 2008-06-25 15:03:38 -07:00 committed by Julien Danjou
parent 013b2afe62
commit 7d2c5da8dd
1 changed files with 4 additions and 0 deletions

View File

@ -302,6 +302,10 @@ if(LUAC_EXECUTABLE)
set(AWE_LUAC_FILES ${AWE_LUAC_FILES} ${luacfile})
endforeach()
if(NOT EXISTS ${BUILD_DIR}/lib)
FILE(MAKE_DIRECTORY ${BUILD_DIR}/lib)
endif()
add_custom_target(compile_lua ALL DEPENDS ${AWE_LUAC_FILES})
endif()
# }}}