summaryrefslogtreecommitdiff
path: root/cmake/FindRuby.cmake
diff options
context:
space:
mode:
authorFaisal N Jawdat <faisal@faisal.com>2023-12-26 14:17:06 -0500
committerSébastien Helleu <flashcode@flashtux.org>2023-12-26 21:08:50 +0100
commit5c65a73432f278a0caf36363a8b01571f1c7236a (patch)
tree438c8dee847163bc7a11a67bc87fdf0e7b21ace6 /cmake/FindRuby.cmake
parent9fb3d3f14c17f8307f04907d5f57034410dc7010 (diff)
downloadweechat-5c65a73432f278a0caf36363a8b01571f1c7236a.zip
ruby: add detection for Ruby 3.3
Diffstat (limited to 'cmake/FindRuby.cmake')
-rw-r--r--cmake/FindRuby.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/FindRuby.cmake b/cmake/FindRuby.cmake
index 51041e127..0751b886c 100644
--- a/cmake/FindRuby.cmake
+++ b/cmake/FindRuby.cmake
@@ -37,7 +37,7 @@ if(PKG_CONFIG_FOUND)
# set specific search path for macOS
set(ENV{PKG_CONFIG_PATH} "$ENV{PKG_CONFIG_PATH}:/usr/local/opt/ruby/lib/pkgconfig")
endif()
- pkg_search_module(RUBY ruby-3.2 ruby-3.1 ruby-3.0 ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby)
+ pkg_search_module(RUBY ruby-3.3 ruby-3.2 ruby-3.1 ruby-3.0 ruby-2.7 ruby-2.6 ruby-2.5 ruby-2.4 ruby-2.3 ruby-2.2 ruby-2.1 ruby-2.0 ruby-1.9 ruby)
if(RUBY_FOUND AND ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
# FIXME: weird hack: hardcoding the Ruby lib location on macOS
set(RUBY_LDFLAGS "${RUBY_LDFLAGS} -L/usr/local/opt/ruby/lib")