1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 12:26:40 +02:00

build: remove our own Ruby detection and rely on CMake detection, require CMake 3.18 (issue #1156)

This fixes the detection of Ruby on macOS 14.
This commit is contained in:
Sébastien Helleu
2024-10-19 11:12:33 +02:00
parent 712227da38
commit f8c7ed65e6
5 changed files with 34 additions and 50 deletions
+2 -2
View File
@@ -28,8 +28,8 @@ if(RUBY_FOUND)
# caused by Ruby headers (with Ruby ≥ 3.1.0)
# see: https://github.com/ruby/ruby/pull/7085
add_definitions(-Wno-unused-parameter)
include_directories(${RUBY_INCLUDE_DIRS})
target_link_libraries(ruby ${RUBY_LDFLAGS} weechat_plugins_scripts coverage_config)
include_directories(${Ruby_INCLUDE_DIRS})
target_link_libraries(ruby ${Ruby_LIBRARIES} weechat_plugins_scripts coverage_config)
endif(RUBY_FOUND)
install(TARGETS ruby LIBRARY DESTINATION "${WEECHAT_LIBDIR}/plugins")