You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: ruby/CMakeLists.txt
+72-34
Original file line number
Diff line number
Diff line change
@@ -112,53 +112,91 @@ if(BUILD_TESTING)
112
112
# find all tests
113
113
file(GLOB RUBY_TEST_SRC "test/*.rb")
114
114
115
-
# TODO: It doesn't work with this executable that's in build/Ruby-install/bin
116
-
# message("RUBY_EXECUTABLE=${RUBY_EXECUTABLE}")
117
115
118
-
# I added FindRuby.cmake from cmake 3.18.2 (after patching cmake to support versions greater than 2 and adding RVM support) in the CMake folder which is part of the CMAKE_MODULE_PATH
119
-
set(Ruby_FIND_VIRTUALENV FIRST)
120
-
find_package(Ruby 2.7)
116
+
# **NOTE**: we do not want to grab the conan one, which is statically built on all platforms, and is a msvc build on windows
117
+
# Instead, we want to grab the regularly installed one on your system
121
118
122
-
if(NOT Ruby_EXECUTABLE)
123
-
message(WARNING "Your system ruby wasn't found, you won't be able to run the `ctest -R RubyTest` command and the tests won't be created at all.")
message(STATUS"Found SYSTEM_RUBY_EXECUTABLE=${SYSTEM_RUBY_EXECUTABLE} with version ${_system_ruby_version}")
161
+
endif()
162
+
endif()
163
+
164
+
if(NOT SYSTEM_RUBY_EXECUTABLE)
165
+
message(WARNING "A valid system ruby (3.2.2 or near) wasn't found, you won't be able to run the `ctest -R RubyTest` command and the tests won't be created at all.")
0 commit comments