Skip to content

Commit

Permalink
fix: maa-fastdeploy rpath
Browse files Browse the repository at this point in the history
  • Loading branch information
neko-para committed Jul 21, 2023
1 parent 5d6b90f commit f782de0
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions vcpkg-overlay/ports/maa-fastdeploy/000-fix-rpath.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0745cde0..802da0e5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -139,6 +139,12 @@ if(ANDROID)
target_link_libraries(MaaDerpLearning PRIVATE log)
endif()

+if (APPLE)
+ set_target_properties(MaaDerpLearning PROPERTIES INSTALL_RPATH "@loader_path")
+elseif (UNIX)
+ set_target_properties(MaaDerpLearning PROPERTIES INSTALL_RPATH "$ORIGIN")
+endif (APPLE)
+
install(TARGETS MaaDerpLearning EXPORT MaaDerpLearningConfig)
install(EXPORT MaaDerpLearningConfig DESTINATION share/MaaDerpLearning)
install(
2 changes: 2 additions & 0 deletions vcpkg-overlay/ports/maa-fastdeploy/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ vcpkg_from_github(
REPO MaaAssistantArknights/FastDeploy
REF 070424e06436524d817131d68c411066fa6069a6
SHA512 23eef7a7dbeb03da124a11c33b862ace63d41d1a37363011d377862361331dc8955256e57f828d177ad5fcc773a6f99df7b5e5f6ac945e01850f0ab4c0f94135
PATCHES
000-fix-rpath.patch
)

vcpkg_cmake_configure(
Expand Down

0 comments on commit f782de0

Please sign in to comment.