[raylib] Fix link warning (#41437)

This commit is contained in:
jim wang 2024-10-10 15:06:01 +00:00 committed by GitHub
parent e4fef94e1b
commit 5bb2aee08b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 21 additions and 2 deletions

View File

@ -0,0 +1,13 @@
diff --git a/cmake/raylib-config.cmake b/cmake/raylib-config.cmake
index 700965c..4815cd6 100644
--- a/cmake/raylib-config.cmake
+++ b/cmake/raylib-config.cmake
@@ -65,7 +65,7 @@ if (NOT TARGET raylib)
IMPORTED_LOCATION "${raylib_LIBRARIES}"
IMPORTED_IMPLIB "${raylib_LIBRARIES}"
INTERFACE_INCLUDE_DIRECTORIES "${raylib_INCLUDE_DIRS}"
- INTERFACE_LINK_LIBRARIES "${raylib_LDFLAGS}"
+ INTERFACE_LINK_LIBRARIES "${raylib_LIBRARIES}"
INTERFACE_COMPILE_OPTIONS "${raylib_DEFINITIONS}"
)

View File

@ -18,6 +18,7 @@ vcpkg_from_github(
HEAD_REF master HEAD_REF master
PATCHES PATCHES
android.diff android.diff
fix-link-path.patch
) )
file(GLOB vendored_headers RELATIVE "${SOURCE_PATH}/src/external" file(GLOB vendored_headers RELATIVE "${SOURCE_PATH}/src/external"
"${SOURCE_PATH}/src/external/cgltf.h" "${SOURCE_PATH}/src/external/cgltf.h"

View File

@ -1,7 +1,7 @@
{ {
"name": "raylib", "name": "raylib",
"version": "5.0", "version": "5.0",
"port-version": 1, "port-version": 2,
"description": "A simple and easy-to-use library to enjoy videogames programming", "description": "A simple and easy-to-use library to enjoy videogames programming",
"homepage": "https://github.com/raysan5/raylib", "homepage": "https://github.com/raysan5/raylib",
"license": "Zlib", "license": "Zlib",

View File

@ -7774,7 +7774,7 @@
}, },
"raylib": { "raylib": {
"baseline": "5.0", "baseline": "5.0",
"port-version": 1 "port-version": 2
}, },
"rbdl": { "rbdl": {
"baseline": "3.3.0", "baseline": "3.3.0",

View File

@ -1,5 +1,10 @@
{ {
"versions": [ "versions": [
{
"git-tree": "e16299f8e3d6b40674ce53b106b764bd7459ad63",
"version": "5.0",
"port-version": 2
},
{ {
"git-tree": "6ef397a5c5afb217736842e45d9610d084a1fb2d", "git-tree": "6ef397a5c5afb217736842e45d9610d084a1fb2d",
"version": "5.0", "version": "5.0",