[lua] Fix CMake LINK_INTERFACE_LIBRARIES (#28027)

* [lua] Fix CMake LINK_INTERFACE_LIBRARIES

* [lua] update port-version
This commit is contained in:
Ruitard 2022-11-29 02:21:55 +08:00 committed by GitHub
parent 8e84e6a233
commit ceb291e236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 12 additions and 7 deletions

View File

@ -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 ()

View File

@ -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,

View File

@ -4614,7 +4614,7 @@
},
"lua": {
"baseline": "5.4.4",
"port-version": 2
"port-version": 3
},
"lua-compat53": {
"baseline": "0.10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "5c1b2c77ce5486e3efd8d57f9fc1dbad9266df1d",
"version": "5.4.4",
"port-version": 3
},
{
"git-tree": "1443185b76c2f6e0e74c425ed0b3176e98a5fb01",
"version": "5.4.4",