Skip to content

Commit 9638b62

Browse files
committed
append CMAKE_INSTALL_FULL_LIBDIR to CMAKE_INSTALL_RPATH only on macOS
1 parent 3159dba commit 9638b62

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

CMakeLists.txt

+4-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@ if (RELOCATABLE)
169169
endif()
170170
endif()
171171

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

174177
if(UNIX AND NOT APPLE)
175178
add_definitions(-DABI_ELF)

0 commit comments

Comments
 (0)