Skip to content

Commit 9271786

Browse files
committed
build: fix rpath settings for macOS builds
JerryScript-DCO-1.0-Signed-off-by: Rui Chen <[email protected]>
1 parent 5020015 commit 9271786

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ set(ENABLE_LTO ON CACHE BOOL "Enable LTO build?")
6868
set(ENABLE_STRIP ON CACHE BOOL "Enable stripping all symbols from release binary?")
6969
set(ENABLE_COMPILE_COMMANDS ON CACHE BOOL "Enable generating compile_commands.json?")
7070

71+
if (APPLE)
72+
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH ON)
73+
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
74+
endif()
75+
7176
if(USING_MSVC)
7277
set(ENABLE_STATIC_CRT OFF CACHE BOOL "Enable MSVC static CRT?")
7378
endif()

0 commit comments

Comments
 (0)