Skip to content

Commit

Permalink
do follow symlinks otherwise it patches nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
JorisGoosen committed Nov 29, 2023
1 parent 90ad343 commit 2cc5d34
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tools/CMake/Patch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ else()
file(
GLOB_RECURSE
LIBRARIES
#FOLLOW_SYMLINKS #Turned this off because it got infinitely regressed
FOLLOW_SYMLINKS #Don turned this off because it got infinitely regressed, but Joris turned it back on because we use symlinks to go to packages nowadays...
"${PATH}/*.so"
"${PATH}/*.dylib")
list(
Expand All @@ -69,6 +69,9 @@ else()
${LIBRARIES}
${BINARIES})


message(STATUS "* Patching got files: ${Files}")

set(NEW_ID "")
set(FRAMEWORK_RESOURCES "@executable_path/../Frameworks/R.framework/Versions/${R_DIR_NAME}/Resources")

Expand All @@ -77,6 +80,9 @@ else()
get_filename_component(FILE_NAME ${FILE} NAME)
get_filename_component(DIRECTORY_NAME ${FILE} DIRECTORY)

message(STATUS "** Patching in Dir '$DIRECTORY' the file '${FILE}'")


string(LENGTH "${PATH}/" PATH_LENGTH)
string(
SUBSTRING "${FILE}"
Expand Down

0 comments on commit 2cc5d34

Please sign in to comment.