Skip to content

Commit

Permalink
[raylib] Fix link warning (#41437)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwang118 authored Oct 10, 2024
1 parent e4fef94 commit 5bb2aee
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
13 changes: 13 additions & 0 deletions ports/raylib/fix-link-path.patch
Original file line number Diff line number Diff line change
@@ -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}"
)

1 change: 1 addition & 0 deletions ports/raylib/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
android.diff
fix-link-path.patch
)
file(GLOB vendored_headers RELATIVE "${SOURCE_PATH}/src/external"
"${SOURCE_PATH}/src/external/cgltf.h"
Expand Down
2 changes: 1 addition & 1 deletion ports/raylib/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "raylib",
"version": "5.0",
"port-version": 1,
"port-version": 2,
"description": "A simple and easy-to-use library to enjoy videogames programming",
"homepage": "https://github.com/raysan5/raylib",
"license": "Zlib",
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7774,7 +7774,7 @@
},
"raylib": {
"baseline": "5.0",
"port-version": 1
"port-version": 2
},
"rbdl": {
"baseline": "3.3.0",
Expand Down
5 changes: 5 additions & 0 deletions versions/r-/raylib.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e16299f8e3d6b40674ce53b106b764bd7459ad63",
"version": "5.0",
"port-version": 2
},
{
"git-tree": "6ef397a5c5afb217736842e45d9610d084a1fb2d",
"version": "5.0",
Expand Down

0 comments on commit 5bb2aee

Please sign in to comment.