[lua] fix static build

This commit is contained in:
alex85k 2017-10-17 22:29:34 +05:00
parent a536a46302
commit 6fb6abba22
3 changed files with 3 additions and 2 deletions

View File

@ -59,7 +59,7 @@ IF (NOT DEFINED SKIP_INSTALL_TOOLS)
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 lua RUNTIME DESTINATION ${CMAKE_INSTALL_PREFIX}/tools )
INSTALL ( TARGETS luai luac 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-2
Version: 5.3.4-3
Description: a powerful, fast, lightweight, embeddable scripting language

View File

@ -33,6 +33,7 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
file(READ ${CURRENT_PACKAGES_DIR}/include/luaconf.h LUA_CONF_H)
string(REPLACE "defined(LUA_BUILD_AS_DLL)" "1" LUA_CONF_H "${LUA_CONF_H}")
file(WRITE ${CURRENT_PACKAGES_DIR}/include/luaconf.h "${LUA_CONF_H}")
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools)
endif()
# Handle copyright