e213428
diff -urN sdformat-6.0.0.orig/CMakeLists.txt sdformat-6.0.0/CMakeLists.txt
e213428
--- sdformat-6.0.0.orig/CMakeLists.txt	2018-01-25 20:43:24.000000000 +0000
e213428
+++ sdformat-6.0.0/CMakeLists.txt	2018-11-23 20:04:09.020944630 +0000
e213428
@@ -61,6 +61,8 @@
e213428
 
e213428
 set (USE_FULL_RPATH OFF CACHE BOOL "Set to true to enable full rpath")
e213428
 
e213428
+set (RUBY_LIB_INSTALL_DIR "lib/ruby" CACHE STRING "Installation directory for ruby scripts (relative to CMAKE_INSTALL_PREFIX)")
e213428
+
e213428
 
e213428
 if (USE_FULL_RPATH)
e213428
   # use, i.e. don't skip the full RPATH for the build tree
e213428
diff -urN sdformat-6.0.0.orig/src/cmd/CMakeLists.txt sdformat-6.0.0/src/cmd/CMakeLists.txt
e213428
--- sdformat-6.0.0.orig/src/cmd/CMakeLists.txt	2018-01-25 20:43:24.000000000 +0000
e213428
+++ sdformat-6.0.0/src/cmd/CMakeLists.txt	2018-11-23 20:04:16.367048961 +0000
e213428
@@ -14,4 +14,4 @@
e213428
     "${CMAKE_CURRENT_BINARY_DIR}/cmdsdformat${SDF_MAJOR_VERSION}.rb" @ONLY)
e213428
 
e213428
 # Install the ruby command line library in an unversioned location.
e213428
-install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmdsdformat${SDF_MAJOR_VERSION}.rb DESTINATION lib/ruby/ignition)
e213428
+install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmdsdformat${SDF_MAJOR_VERSION}.rb DESTINATION ${RUBY_LIB_INSTALL_DIR}/ignition)