fix macos rpath
Without this patch, the three libraries are not provided with valid
rpaths, meaning they are not packaged correctly for macos.
c.f.
(which is a similar issue) but should be fixed by this fix as well.
Also
@@ -146,6 +146,8 @@ elseif(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
add_definitions(-DOS_FREEBSD)
elseif(${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
add_definitions(-DOS_MACOSX)
+ set(CMAKE_MACOS_RPATH TRUE)
+ set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib")
endif()
function(transform_sources_list INPUT_FILE OUTPUT_FILE)
