From b30e63f7906406e723387d825d3fde2570e399d2 Mon Sep 17 00:00:00 2001 From: Alex Golubev Date: Sat, 17 Aug 2024 05:36:53 +0300 Subject: [PATCH] cmake: fix macOS library linking dyld[55498]: Library not loaded: @rpath/libpawnc.dylib --- source/compiler/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/source/compiler/CMakeLists.txt b/source/compiler/CMakeLists.txt index 5bf3173..c3ac3b5 100644 --- a/source/compiler/CMakeLists.txt +++ b/source/compiler/CMakeLists.txt @@ -62,6 +62,7 @@ endif() if(APPLE) set(CMAKE_MACOSX_RPATH ON) + set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib") endif() configure_file(${CMAKE_CURRENT_SOURCE_DIR}/version.h.in