diff options
author | Mihai Moldovan <ionic@ionic.de> | 2022-01-31 04:57:39 (GMT) |
---|---|---|
committer | Mihai Moldovan <ionic@ionic.de> | 2022-01-31 04:57:42 (GMT) |
commit | 6b6bc7791d21f45a930b04b8e88102ee7fafb6ad (patch) | |
tree | dd4e79da1a36de39de37b414478e25b74e0f965d /Help/guide/tutorial/Step12/tutorial.cxx | |
parent | 42d99a248ebd3a57d6962eed6d19559334b9a376 (diff) | |
download | CMake-6b6bc7791d21f45a930b04b8e88102ee7fafb6ad.zip CMake-6b6bc7791d21f45a930b04b8e88102ee7fafb6ad.tar.gz CMake-6b6bc7791d21f45a930b04b8e88102ee7fafb6ad.tar.bz2 |
FindRuby: evict non-matching binaries and keep scanning.
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.
Diffstat (limited to 'Help/guide/tutorial/Step12/tutorial.cxx')
0 files changed, 0 insertions, 0 deletions