Copy lua51.dll (luajit) to bindir (#6148)
authoradrido <robots_only_adrido@gmx.com>
Tue, 18 Jul 2017 19:29:23 +0000 (21:29 +0200)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Tue, 18 Jul 2017 19:29:23 +0000 (21:29 +0200)
src/CMakeLists.txt

index a7e26af7da77c4c91daef5aaf166919047b75ec5..2e624dd7f56475456645f5bea2645a869fd2a231 100644 (file)
@@ -292,6 +292,9 @@ if(WIN32)
                set(VORBIS_DLL "" CACHE FILEPATH "Path to libvorbis.dll for installation (optional)")
                set(VORBISFILE_DLL "" CACHE FILEPATH "Path to libvorbisfile.dll for installation (optional)")
        endif()
+       if(USE_LUAJIT)
+               set(LUA_DLL "" CACHE FILEPATH "Path to lua51.dll for installation (optional)")
+       endif()
 else()
        # Unix probably
        if(BUILD_CLIENT)
@@ -809,6 +812,9 @@ if(WIN32)
        if(LEVELDB_DLL)
                install(FILES ${LEVELDB_DLL} DESTINATION ${BINDIR})
        endif()
+       if(LUA_DLL)
+               install(FILES ${LUA_DLL} DESTINATION ${BINDIR})
+       endif()
 endif()
 
 if(BUILD_CLIENT)