mirror of
https://github.com/cemu-project/vcpkg.git
synced 2025-02-23 02:57:09 +01: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
|
ADD_EXECUTABLE ( luai src/lua.c ) # interpreter
|
||||||
TARGET_LINK_LIBRARIES ( luai lua )
|
TARGET_LINK_LIBRARIES ( luai lua )
|
||||||
SET_TARGET_PROPERTIES ( luai PROPERTIES OUTPUT_NAME lua PDB_NAME luai )
|
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 ()
|
ENDIF ()
|
||||||
|
|
||||||
IF (NOT DEFINED SKIP_INSTALL_HEADERS)
|
IF (NOT DEFINED SKIP_INSTALL_HEADERS)
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
Source: lua
|
Source: lua
|
||||||
Version: 5.3.4-2
|
Version: 5.3.4-3
|
||||||
Description: a powerful, fast, lightweight, embeddable scripting language
|
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)
|
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}")
|
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}")
|
file(WRITE ${CURRENT_PACKAGES_DIR}/include/luaconf.h "${LUA_CONF_H}")
|
||||||
|
vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
|
Loading…
x
Reference in New Issue
Block a user