fix rpath

This commit is contained in:
leo60228 2024-01-26 15:52:36 -05:00
parent 45f0f9756b
commit 7bd22d3388
No known key found for this signature in database
GPG Key ID: 6F3EB461799AD95E
1 changed files with 5 additions and 2 deletions

View File

@ -49,8 +49,11 @@ if(APPLE)
endif()
# RPATH
if(NOT WIN32 AND NOT CMAKE_SYSTEM_NAME STREQUAL "iOS")
if(APPLE)
if(NOT WIN32)
if(CMAKE_SYSTEM_NAME STREQUAL "iOS")
set(BIN_LIBROOT "Frameworks")
set(BIN_RPATH "@executable_path/Frameworks")
elseif(APPLE)
set(BIN_LIBROOT "osx")
set(BIN_RPATH "@executable_path/osx")
elseif(CMAKE_SIZEOF_VOID_P MATCHES "8")