[lua] cmake link library is absolute path (#30922)

* [lua] cmake_minimum_required should before project

* [lua] link dl not use absolute path

* [lua] update port-version
This commit is contained in:
Ruitard 2023-04-19 07:58:56 +08:00 committed by GitHub
parent ddb818c9bc
commit 29fd45c883
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 10 additions and 6 deletions

View File

@ -13,7 +13,7 @@ IF (UNIX)
FIND_LIBRARY (LIB_DLOPEN NAMES dl)
IF (LIB_DLOPEN)
TARGET_COMPILE_DEFINITIONS (lua-cpp PUBLIC -DLUA_USE_DLOPEN)
TARGET_LINK_LIBRARIES (lua-cpp ${LIB_DLOPEN})
TARGET_LINK_LIBRARIES (lua-cpp ${CMAKE_DL_LIBS})
ENDIF ()
ENDIF ()
ENDIF ()

View File

@ -7,11 +7,10 @@
# - This is a source-incompatible change because extern "C" is chosen by the including application.
# - The lua.hpp header will not be available.
PROJECT ( lua )
CMAKE_MINIMUM_REQUIRED(VERSION 3.18)
PROJECT(lua)
# Build Libraries
FILE(GLOB HDR_LIBLUA "${CMAKE_SOURCE_DIR}/src/*.h")
# For luac.c

View File

@ -1,7 +1,7 @@
{
"name": "lua",
"version": "5.4.4",
"port-version": 6,
"port-version": 7,
"description": "A powerful, fast, lightweight, embeddable scripting language",
"homepage": "https://www.lua.org",
"license": null,

View File

@ -4894,7 +4894,7 @@
},
"lua": {
"baseline": "5.4.4",
"port-version": 6
"port-version": 7
},
"lua-compat53": {
"baseline": "0.10",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "804a148ba3bbecf8f998d38c682eaee628725fbb",
"version": "5.4.4",
"port-version": 7
},
{
"git-tree": "d250107f0ea435eb8145cd8b0db97aebee05f0b6",
"version": "5.4.4",