--- cmake/FindPhononInternal.cmake.orig +++ cmake/FindPhononInternal.cmake @@ -99,6 +99,9 @@ set(CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS "${CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS} -flat_namespace -undefined dynamic_lookup") set(CMAKE_INSTALL_NAME_DIR ${LIB_INSTALL_DIR}) + if (NOT IS_ABSOLUTE "${CMAKE_INSTALL_NAME_DIR}") + set(CMAKE_INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") + endif() endif(APPLE) if (NOT PHONON_BUILD_PHONON4QT5) # Qt4