message: CMake: Only specify INSTALL_RPATH in shared library builds
  Since other .so files referenced by the executable are installed
  system-wide, we only need to override RPATH when linking to
  libmeshoptimizer.so.
diff: @@ -57,9 +57,11 @@ if(BUILD_TOOLS)
  target_link_libraries(gltfpack meshoptimizer)
  list(APPEND TARGETS gltfpack)
  + if(BUILD_SHARED_LIBS)
  string(CONCAT RPATH "$ORIGIN/../" ${CMAKE_INSTALL_LIBDIR})
  set_target_properties(gltfpack PROPERTIES INSTALL_RPATH ${RPATH})
  endif()
  +endif()
  include(GNUInstallDirs)
  