message: Don't assume the installed lib dependencies are named lib<name>.so.2
diff: @@ -134,9 +134,9 @@ INCLUDE(package)
  ##############################################################
  IF (OSPRAY_INSTALL_DEPENDENCIES)
  - MACRO(OSPRAY_INSTALL_NAMELINK NAME)
  + MACRO(OSPRAY_INSTALL_NAMELINK NAME TARGET_NAME)
  EXECUTE_PROCESS(COMMAND "${CMAKE_COMMAND}" -E create_symlink
  - lib${NAME}.so.2 ${CMAKE_CURRENT_BINARY_DIR}/lib${NAME}.so)
  + ${TARGET_NAME} ${CMAKE_CURRENT_BINARY_DIR}/lib${NAME}.so)
  INSTALL(PROGRAMS ${CMAKE_CURRENT_BINARY_DIR}/lib${NAME}.so
  DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT redist)
  ENDMACRO()
  @@ -168,8 +168,10 @@ IF (OSPRAY_INSTALL_DEPENDENCIES)
  INSTALL(PROGRAMS ${TBB_LIBRARY} ${TBB_LIBRARY_MALLOC}
  DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT redist)
  IF (NOT APPLE)
  - OSPRAY_INSTALL_NAMELINK(tbb)
  - OSPRAY_INSTALL_NAMELINK(tbbmalloc)
  + get_filename_component(TBB_LIBNAME ${TBB_LIBRARY} NAME)
  + get_filename_component(TBB_MALLOC_LIBNAME ${TBB_LIBRARY_MALLOC} NAME)
  + OSPRAY_INSTALL_NAMELINK(tbb ${TBB_LIBNAME})
  + OSPRAY_INSTALL_NAMELINK(tbbmalloc ${TBB_MALLOC_LIBNAME})
  ENDIF()
  ENDIF()
  ENDIF()
  @@ -190,7 +192,8 @@ IF (OSPRAY_INSTALL_DEPENDENCIES)
  INSTALL(PROGRAMS ${EMBREE_LIBRARY}
  DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT redist)
  IF (NOT APPLE)
  - OSPRAY_INSTALL_NAMELINK(embree)
  + get_filename_component(EMBREE_LIBNAME ${EMBREE_LIBRARY} NAME)
  + OSPRAY_INSTALL_NAMELINK(embree ${EMBREE_LIBNAME})
  ENDIF()
  ENDIF()
  ENDIF()
  