diff -up ./CMakeLists.txt.rubydir ./CMakeLists.txt --- ./CMakeLists.txt.rubydir 2020-08-20 17:47:09.856575432 -0400 +++ ./CMakeLists.txt 2020-08-20 17:47:30.133444682 -0400 @@ -72,6 +72,7 @@ endif() set (INCLUDE_INSTALL_DIR "${CMAKE_INSTALL_INCLUDEDIR}/sdformat-${SDF_VERSION}/sdf") set (LIB_INSTALL_DIR ${CMAKE_INSTALL_LIBDIR} CACHE STRING "Installation directory for libraries (relative to CMAKE_INSTALL_PREFIX)") set (BIN_INSTALL_DIR ${CMAKE_INSTALL_BINDIR} CACHE STRING "Installation directory for binaries (relative to CMAKE_INSTALL_PREFIX)") +set (RUBY_LIB_INSTALL_DIR "lib/ruby" CACHE STRING "Installation directory for ruby scripts (relative to CMAKE_INSTALL_PREFIX)") set (USE_FULL_RPATH OFF CACHE BOOL "Set to true to enable full rpath") set(PKG_NAME SDFormat) diff -up ./src/cmd/CMakeLists.txt.rubydir ./src/cmd/CMakeLists.txt --- ./src/cmd/CMakeLists.txt.rubydir 2020-08-20 17:47:09.857575425 -0400 +++ ./src/cmd/CMakeLists.txt 2020-08-20 17:49:04.316695562 -0400 @@ -41,4 +41,4 @@ file(GENERATE INPUT "${cmd_script_configured}") # Install the ruby command line library in an unversioned location. -install(FILES ${cmd_script_generated} DESTINATION lib/ruby/ignition) +install(FILES ${cmd_script_generated} DESTINATION ${RUBY_LIB_INSTALL_DIR}/ignition)