- Joined
- Feb 25, 2024
- Messages
- 4
- Reaction score
- 0
I have a c++ project that uses SDL2. I want Meson to use a certain path for libraries when building, but I want the resulting executable to use a local path (eg. @executable_path/../libs). I tried build_rpath and install_rpath, but they do not seem to work. I asked many chatbots for help, but none of them helped at all. Any ideas?
code:
code:
Code:
project('Default','cpp')
SDL2_dir = 'SDL2'
SDL2_Ldir = '/Library/SoftwareDevelopment/cpp/lib'
executable('Executable', 'main.cpp', link_args:[SDL2_Ldir+'/libSDL2-x64.dylib'], build_rpath:SDL2_Ldir, install_rpath:'@executable_path/../libs')