Dynamically link lua.dll to lua.exe

For lua.exe to load C modules which are linked against lua, it must itself be
linked against lua, otherwise loading the module fails.
This commit is contained in:
Stephen E. Baker 2017-09-27 21:24:38 -04:00
parent 548b7f6919
commit 493d94e296
2 changed files with 4 additions and 3 deletions

View File

@ -56,9 +56,10 @@ INSTALL ( TARGETS lua
IF (NOT DEFINED SKIP_INSTALL_TOOLS)
ADD_EXECUTABLE ( luac src/luac.c ${SRC_LIBLUA} ) # compiler
ADD_EXECUTABLE ( luai src/lua.c ${SRC_LIBLUA} ) # interpreter
ADD_EXECUTABLE ( luai src/lua.c ) # interpreter
TARGET_LINK_LIBRARIES ( luai lua )
SET_TARGET_PROPERTIES ( luai PROPERTIES OUTPUT_NAME lua PDB_NAME luai )
INSTALL ( TARGETS luai luac RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools )
INSTALL ( TARGETS luai luac lua RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools )
ENDIF ()
IF (NOT DEFINED SKIP_INSTALL_HEADERS)

View File

@ -1,3 +1,3 @@
Source: lua
Version: 5.3.4-1
Version: 5.3.4-2
Description: a powerful, fast, lightweight, embeddable scripting language