CMP0185
Added in version 4.0.
FindRuby no longer provides upper-case RUBY_* variables.
FindRuby in CMake 3.31 and below provided result variables named with an upper-case RUBY_ prefix. CMake 3.18 renamed them with a Ruby_ prefix to match the name of the package, but continued to provide the upper-case RUBY_ variables for compatibility.
CMake 4.0 and above prefer to provide only Ruby_ variables and no longer provide RUBY_ variables. This policy provides compatibility with projects that have not been updated.
The OLD behavior for this policy is to provide both Ruby_ and RUBY_ variables. The NEW behavior for this policy is to provide only Ruby_ variables and not RUBY_ variables.
This policy was introduced in CMake version 4.0. It may be set by cmake_policy() or cmake_minimum_required(). If it is not set, CMake does not warn, and uses OLD behavior.
Note
The OLD behavior of a policy is deprecated by definition and may be removed in a future version of CMake.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/policy/CMP0185.html