mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-19 06:03:02 +08:00
[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:
parent
ddb818c9bc
commit
29fd45c883
@ -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 ()
|
||||
|
@ -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
|
||||
|
@ -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,
|
||||
|
@ -4894,7 +4894,7 @@
|
||||
},
|
||||
"lua": {
|
||||
"baseline": "5.4.4",
|
||||
"port-version": 6
|
||||
"port-version": 7
|
||||
},
|
||||
"lua-compat53": {
|
||||
"baseline": "0.10",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "804a148ba3bbecf8f998d38c682eaee628725fbb",
|
||||
"version": "5.4.4",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "d250107f0ea435eb8145cd8b0db97aebee05f0b6",
|
||||
"version": "5.4.4",
|
||||
|
Loading…
Reference in New Issue
Block a user