Skip to content

Commit

Permalink
Remove hard dependence on ruby (#1323)
Browse files Browse the repository at this point in the history
The dep will get pulled in by gz-tools

Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Sep 7, 2023
1 parent fc3d1ff commit f6f34e2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
1 change: 0 additions & 1 deletion .github/ci/packages.apt
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@ python3-gz-math7
python3-psutil
python3-pybind11
python3-pytest
ruby-dev
12 changes: 1 addition & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,6 @@ if (BUILD_SDF)
gz_build_warning("Python psutil package not found. Memory leak tests will be skipped")
endif()

################################################
# Find ruby executable to produce xml schemas
find_program(RUBY ruby)
if (NOT RUBY)
gz_build_error ("Ruby version 1.9 is needed to build xml schemas")
else()
message(STATUS "Found ruby executable: ${RUBY}")
endif()

########################################
# Find gz math
# Set a variable for generating ProjectConfig.cmake
Expand All @@ -133,8 +124,7 @@ if (BUILD_SDF)
########################################
# Python interfaces
if (NOT PYTHON3_FOUND)
GZ_BUILD_WARNING("Python is missing: Python interfaces are disabled.")
message (STATUS "Searching for Python - not found.")
GZ_BUILD_ERROR("Python is missing - Needed to build/embed xml schemas")
else()
message (STATUS "Searching for Python - found version ${Python3_VERSION}.")

Expand Down

0 comments on commit f6f34e2

Please sign in to comment.