summaryrefslogtreecommitdiffstats
path: root/Modules/FindRuby.cmake
Commit message (Collapse)AuthorAgeFilesLines
* Find*: Update *_FOUND variablesPeter Kokot2025-09-231-1/+3
| | | | | | | | | | | | | | | | | | | | | This marks all `<PACKAGENAME>_FOUND` result variables as deprecated where possible (for `<PackageName>` find modules) to make it clearer which variable to use. In CMake 3.3, the FindPackageHandleStandardArgs module was refactored to set both `<PackageName>_FOUND` and uppercase `<PACKAGENAME>_FOUND` result variables to the same values. Before that, the FOUND_VAR argument could be used to set the result variable. * FindMatlab: Uppercased MATLAB_FOUND is not mentioned as it was never documented. * Documentation for FindPythonInterp and FindPythonLibs modules synced accordingly to their deprecation (3.12 instead of 4.2). * OPENGL_FOUND: deprecation version synced with other find modules. * DevIL_FOUND was introduced in CMake 3.8. The uppercased variant not mentioned as it was previously never documented. Fixes: #27242
* FindRuby: Sync documentationPeter Kokot2025-08-051-35/+57
| | | | | | | - Added intro code block showing how to use this module. - Resorted result variables. - Synced descriptions. - Added separate examples section.
* FindRuby: Improve logic populating MSVC runtime alternativescfis2025-05-141-7/+1
| | | | | Ruby (mswin) links to vcruntime140, but future proof by using MSVC toolset version.
* FindRuby: Improve order of library name alternativescfis2025-05-141-3/+3
| | | | | Prefer long versions over short versions. Prefer dotted versions over no-dot versions.
* FindRuby: The library name on Windows uses major.minor.0 formatcfis2025-05-131-1/+2
|
* FindRuby: Improve formatting of list of possible library namescfis2025-05-051-1/+9
|
* FindRuby: Fix typos in variable namescfis2025-05-051-5/+5
|
* FindRuby: Generalize name of runtime candidates variablecfis2025-05-051-6/+6
|
* FindRuby: Name private version variables more consistentlycfis2025-05-051-4/+4
|
* LICENSE: Replace references to Copyright.txt with LICENSE.rstKitware Robot2025-03-031-1/+1
| | | | | | | | | | ``` git grep -lz 'Copyright.txt or https://cmake.org/licensing ' | while IFS= read -r -d $'\0' f ; do sed -i '/Copyright.txt or https:\/\/cmake.org\/licensing / { s/Copyright.txt/LICENSE.rst/ }' "$f" ; done ```
* FindRuby: Update commentsCharlie Savage2025-02-031-19/+17
|
* Merge topic 'FindRuby-compat-vars'Brad King2025-02-021-57/+64
|\ | | | | | | | | | | | | 2d86cf314f FindRuby: Drop upper-case RUBY_ results in favor of Ruby_ variables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10273
| * FindRuby: Drop upper-case RUBY_ results in favor of Ruby_ variablesBrad King2025-02-011-57/+64
| | | | | | | | | | | | Add policy CMP0185 for compatibility. Fixes: #26640
* | FindRuby: Port debug output to message(DEBUG)Charlie Savage2025-01-311-17/+15
|/
* Modules/Find*: Include FindPackageHandleStandardArgs normallyBrad King2025-01-301-1/+1
| | | | | | | Since commit d74210a8bd (CMP0017: Remove support for OLD behavior, 2024-11-17) we can rely on CMP0017's NEW behavior unconditionally. Calling `include(FindPackageHandleStandardArgs)` in a builtin module will always get the builtin `FindPackageHandleStandardArgs`.
* FindRuby: Reformat code so it is consistentCharlie Savage2025-01-291-203/+200
|
* Merge topic 'patch-lower-case-style'Brad King2025-01-291-1/+1
|\ | | | | | | | | | | | | | | | | 4e6a13f211 Use lower case style for commands Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Alex Turbov <i.zaufi@gmail.com> Merge-request: !10245
| * Use lower case style for commandsPeter Kokot2025-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Where possible this syncs the CS for command names: - check_c_source_compiles() - check_cxx_compiler_flag() - check_cxx_source_compiles() - check_cxx_symbol_exists() - check_include_file_cxx() - check_include_file() - check_include_files() - check_library_exists() - check_source_compiles() - check_struct_has_member() - check_symbol_exists() - check_type_size() - cmake_dependent_option() - cmake_parse_arguments() - feature_summary() - file() - find_package_handle_standard_args() - if(), endif... - install(FILES) - list() - message() - pkg_check_modules() - select_library_configurations() - set_package_info() - test_big_endian()
* | FindRuby: Add rbenv supportcfis2025-01-281-17/+58
|/
* FindRuby: Use find_program VALIDATORCharlie Savage2025-01-171-44/+26
| | | | Avoid caching an unsuitable version of `Ruby_EXECUTABLE`.
* FindRuby: Clarify search process comments and conditionsCharlie Savage2025-01-171-9/+6
|
* FindRuby: Remove unused variableCharlie Savage2025-01-171-2/+0
|
* FindRuby: Query Ruby_EXECUTABLE again if it changesBrad King2025-01-171-1/+2
|
* FindRuby: Move checking of RVM and System Ruby to separate functions.cfis2024-12-041-51/+48
|
* FindRuby: Remove unneeded code and define all functions at the top-level.cfis2024-12-031-68/+27
|
* FindRuby: Add support for 3.4cfis2024-12-021-15/+10
|
* FindRuby: Fix finding Ruby 3.1+ on WindowsCharlie Savage2024-03-051-6/+9
| | | | It switched to the UCRT C runtime.
* FindRuby: Add support for 3.3Charlie Savage2024-03-051-6/+6
|
* FindRuby: Add support for 3.2Heiko Becker2023-10-101-6/+6
|
* FindRuby: Remove documentation for non-existent Ruby_ROOT_DIRHannes Braun2022-11-281-3/+0
| | | | | | | | Documentation was added by commit 905d5667e8 (FindRuby: Add support for RVM installations, 2020-03-23, v3.18.0-rc1~497^2), but this feature was never implemented. Closes: #21528
* FindRuby: Simplify version matchingDiego Pino Garcia2022-06-301-46/+7
|
* FindRuby: evict non-matching binaries and keep scanning.Mihai Moldovan2022-01-311-1/+12
| | | | | | | | | | | | The possible executable names list always starts with a plain "ruby" binary, which is scanned for first. If that does exist (which satisfies find_program), but doesn't match the requested version, the executable will be dismissed by _RUBY_VALIDATE_INTERPRETER (which is sane), but searching also stops. Fix that by keeping the search going, removing items from the list as we go, until find_program returns a path that _RUBY_VALIDATE_INTERPRETER is happy with or the list is empty.
* FindRuby: add support for versions up to 3.1.Mihai Moldovan2022-01-311-6/+16
|
* FindRuby: Consider ruby names with full nodot version suffixesPedro Luis Castedo Cepeda2021-03-251-1/+1
|
* Help: Add `.. versionadded` directives to module docsNikita Nemkin2020-12-021-4/+8
| | | | Issue: #19715
* FindRuby: Consider more VS runtime suffix combinationsSilvio Traversaro2020-11-111-7/+13
| | | | | | | These are needed to find recent Ruby versions for builds using recent VS versions. Fixes: #21066
* FindRuby: Restore compatibility variable RUBY_VENDORLIB_DIRBrad King2020-10-271-0/+1
| | | | | | | | | | Since commit e672db628b (FindRuby: Rename variables to match case of module name, 2020-03-11, v3.18.0-rc1~546^2), the result variables named with the old `RUBY_` prefix are provided by compatibility code that maps from the new `Ruby_` prefix variables. This variable was accidentally left out. Fixes: #21369
* FindRuby: Add documentation for deprecated variablesDaniele E. Domenichelli2020-08-121-2/+13
| | | | | | | | | Since commit e672db628b (FindRuby: Rename variables to match case of module name, 2020-03-11, v3.18.0-rc1~546^2), the upper-case-prefixed variable names are for compatibility only but still exist. Put them back in the documentation. Issue: #21064
* FindRuby: Restore compatibility variable RUBY_INCLUDE_PATHBrad King2020-08-071-2/+1
| | | | | | | | | | | | Since commit e672db628b (FindRuby: Rename variables to match case of module name, 2020-03-11, v3.18.0-rc1~546^2), the result variables named with the old `RUBY_` prefix are provided by compatibility code that maps from the new `Ruby_` prefix variables. There is no `Ruby_INCLUDE_PATH` variable, so do not try to map it to `RUBY_INCLUDE_PATH`. The latter is provided by dedicated compatibility code left from before that transition. Fixes: #21064
* FindRuby: Add support for RVM installationsJulien Marrec2020-03-231-5/+93
|
* FindRuby: Validate Ruby_EXECUTABLE before accepting itJulien Marrec2020-03-231-0/+40
|
* FindRuby: Add support for versions up to 2.7Julien Marrec2020-03-171-30/+82
| | | | Fixes: #20370
* FindRuby: Update MSVC runtime library selectionBrad King2020-03-171-15/+4
| | | | | | | Use the `MSVC_TOOLSET_VERSION` variable computed by CMake to get the matching Ruby library name component. Inspired-by: Julien Marrec <julien.marrec@gmail.com>
* FindRuby: Remove extra whitespaceJulien Marrec2020-03-161-1/+1
|
* FindRuby: Include FPHSA closer to where it is usedBrad King2020-03-161-1/+1
|
* FindRuby: Provide Ruby_LIBRARIES result variableBrad King2020-03-161-2/+6
| | | | | The `cmake-developer(7)` manual documents that a plural non-cached name should be used for results.
* FindRuby: Fix compatibility with upper-case cache variablesBrad King2020-03-131-0/+16
| | | | | | In commit e672db628b (FindRuby: Rename variables to match case of module name, 2020-03-11) compatibility was provided for result variables but not for the cache entries that scripts might set.
* FindRuby: Fix name of Ruby_LIBRARY variableBrad King2020-03-131-5/+5
| | | | | Fix a typo in the variable name caused by commit e672db628b (FindRuby: Rename variables to match case of module name, 2020-03-11).
* FindRuby: Rename variables to match case of module nameJulien Marrec2020-03-111-157/+185
| | | | | | | | | | | | | | Use recommended case for variable names, i.e. matching name of the module as passed to `find_package`. For backwards compatibility, the upper case versions of both input and output variables are used and defined when appropriate. Skip this for the _FOUND variable because FPHSA already does it. This follows the approach from commit a7b09e7f43 (FindProtobuf: Rename variables to match case of module name, 2016-03-01, v3.6.0-rc1~273^2). Issue: #20370
* Modules: Consistently use 2 space indentationKitware Robot2019-05-141-156/+157
|