mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
[lua] Fix CMake LINK_INTERFACE_LIBRARIES (#28027)
* [lua] Fix CMake LINK_INTERFACE_LIBRARIES * [lua] update port-version
This commit is contained in:
parent
8e84e6a233
commit
ceb291e236
@ -28,10 +28,6 @@ ENDIF ()
|
||||
|
||||
IF (UNIX)
|
||||
ADD_DEFINITIONS (-DLUA_USE_POSIX)
|
||||
FIND_LIBRARY (LIB_MATH NAMES m)
|
||||
IF (LIB_MATH)
|
||||
LINK_LIBRARIES (${LIB_MATH})
|
||||
ENDIF ()
|
||||
ENDIF ()
|
||||
|
||||
# C library
|
||||
@ -53,7 +49,11 @@ IF (UNIX)
|
||||
FIND_LIBRARY (LIB_DLOPEN NAMES dl)
|
||||
IF (LIB_DLOPEN)
|
||||
TARGET_COMPILE_DEFINITIONS (lua PUBLIC -DLUA_USE_DLOPEN)
|
||||
TARGET_LINK_LIBRARIES (lua ${LIB_DLOPEN})
|
||||
TARGET_LINK_LIBRARIES (lua ${CMAKE_DL_LIBS})
|
||||
ENDIF ()
|
||||
FIND_LIBRARY (LIB_MATH NAMES m)
|
||||
IF (LIB_MATH)
|
||||
TARGET_LINK_LIBRARIES (lua m)
|
||||
ENDIF ()
|
||||
ENDIF ()
|
||||
ENDIF ()
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "lua",
|
||||
"version": "5.4.4",
|
||||
"port-version": 2,
|
||||
"port-version": 3,
|
||||
"description": "A powerful, fast, lightweight, embeddable scripting language",
|
||||
"homepage": "https://www.lua.org",
|
||||
"license": null,
|
||||
|
@ -4614,7 +4614,7 @@
|
||||
},
|
||||
"lua": {
|
||||
"baseline": "5.4.4",
|
||||
"port-version": 2
|
||||
"port-version": 3
|
||||
},
|
||||
"lua-compat53": {
|
||||
"baseline": "0.10",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "5c1b2c77ce5486e3efd8d57f9fc1dbad9266df1d",
|
||||
"version": "5.4.4",
|
||||
"port-version": 3
|
||||
},
|
||||
{
|
||||
"git-tree": "1443185b76c2f6e0e74c425ed0b3176e98a5fb01",
|
||||
"version": "5.4.4",
|
||||
|
Loading…
x
Reference in New Issue
Block a user