mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 01:09:07 +08:00
[lua] fix static build
This commit is contained in:
parent
a536a46302
commit
6fb6abba22
@ -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)
|
||||
|
@ -1,3 +1,3 @@
|
||||
Source: lua
|
||||
Version: 5.3.4-2
|
||||
Version: 5.3.4-3
|
||||
Description: a powerful, fast, lightweight, embeddable scripting language
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user