From b8b50ce6f0393c76be48c8a49f67bf4379e55156 Mon Sep 17 00:00:00 2001 From: Alex Golubev Date: Sat, 17 Aug 2024 04:55:15 +0300 Subject: [PATCH] cmake: fix macOS library linking fix: dyld[48557]: 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 aaac94ea..791f06c7 100644 --- a/source/compiler/CMakeLists.txt +++ b/source/compiler/CMakeLists.txt @@ -60,6 +60,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