Skip to content

FindRuby: Update for Ruby 3.3 and Windows

Charlie Savage requested to merge cfis/cmake:master into master

This MR consists of two commits that update FindRuby (happy to split them into different MR's if that is preferred).

First, it adds support for Ruby 3.3.0 which was released in December.

Second, it fixes finding Ruby on Windows. Starting with version 3.1 (released in 2021), Ruby switched to using the ucrt C runtime instead of msvcrt. In addition, the library prefixes for both mingw and msvc ruby libraries were updated.

I have tested these changes using Ruby 3.3.0 on Windows 11, building with both mingw64 and msvc 2022.

Backport: release
Topic-rename: FindRuby-3.3

Edited by Brad King

Merge request reports