piper icon indicating copy to clipboard operation
piper copied to clipboard

Fixed build issues on MacOS caused by unset rpath

Open LouisGameDev opened this issue 1 year ago • 3 comments

Similar to Linux, the rpath is now set to @loader_path, the mac version of $ORIGIN on Linux.

Now also moves *.dylibs (macs' version of dll) from lib to install.

LouisGameDev avatar Feb 25 '24 11:02 LouisGameDev

worked well for me, thank you!

jmtatsch avatar Feb 27 '24 10:02 jmtatsch

Worked for me as well!

damageboy avatar Mar 02 '24 08:03 damageboy

From a cmake point of view this is wrong. You should not manipulate the CFLAGS. On Linux you need to use:

set_target_properties(piper PROPERTIES BUILD_RPATH_USE_ORIGIN TRUE)

and and MacOSX:

set_target_properties(piper PROPERTIES MACOSX_RPATH TRUE)

according to: https://cmake.org/cmake/help/latest/prop_tgt/MACOSX_RPATH.html

cryptomilk avatar Mar 12 '24 17:03 cryptomilk