From 7d2c5da8dd2f71b345568ce806dad0cdec37dc11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20C=2E=20Morency?= Date: Wed, 25 Jun 2008 15:03:38 -0700 Subject: [PATCH] fixed out-of-source luac file generation --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index b4127501..e2645229 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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() # }}}