Skip to content

Commit

Permalink
append CMAKE_INSTALL_FULL_LIBDIR to CMAKE_INSTALL_RPATH only on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
andyli committed Jul 27, 2024
1 parent 3159dba commit 9638b62
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,10 @@ if (RELOCATABLE)
endif()
endif()

list(APPEND CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
# https://github.com/HaxeFoundation/neko/pull/288#issuecomment-2102504348
if(APPLE)
list(APPEND CMAKE_INSTALL_RPATH ${CMAKE_INSTALL_FULL_LIBDIR})
endif()

if(UNIX AND NOT APPLE)
add_definitions(-DABI_ELF)
Expand Down

0 comments on commit 9638b62

Please sign in to comment.