Skip to content

Commit f9380b5

Browse files
committed
Fix variable name spelling mistake.
1 parent 107138b commit f9380b5

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

FindRuby.cmake

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ if (Ruby_EXECUTABLE AND NOT Ruby_EXECUTABLE STREQUAL "${_Ruby_EXECUTABLE_LAST_QU
306306
Ruby_VERSION_MAJOR
307307
Ruby_VERSION_MINOR
308308
Ruby_VERSION_PATCH
309-
)
309+
)
310310
endif ()
311311

312312
# In case Ruby_EXECUTABLE could not be executed (e.g. cross compiling)
@@ -349,7 +349,7 @@ find_path(Ruby_INCLUDE_DIR
349349
${Ruby_HDR_DIR}
350350
${Ruby_ARCH_DIR}
351351
/usr/lib/ruby/${_Ruby_VERSION_SHORT}/i586-linux-gnu/
352-
)
352+
)
353353

354354
set(Ruby_INCLUDE_DIRS ${Ruby_INCLUDE_DIR})
355355

@@ -361,19 +361,21 @@ if (Ruby_FIND_VERSION VERSION_GREATER_EQUAL "1.9" OR Ruby_VERSION VERSION_GREATE
361361
${Ruby_HDR_DIR}/${Ruby_ARCH}
362362
${Ruby_ARCH_DIR}
363363
${Ruby_ARCHHDR_DIR}
364-
)
364+
)
365365

366366
set(Ruby_INCLUDE_DIRS ${Ruby_INCLUDE_DIRS} ${Ruby_CONFIG_INCLUDE_DIR})
367367
endif ()
368368

369369
# Determine the list of possible names for the ruby library
370-
set(_Ruby_POSSIBLE_LIB_NAMES ruby
371-
ruby-static
372-
ruby-${Ruby_VERSION}
373-
ruby${_Ruby_VERSION_NODOT}
374-
ruby${_Ruby_VERSION_NODOT_ZERO_PATCH}
375-
ruby${_Ruby_VERSION_SHORT}
376-
ruby${_Ruby_VERSION_SHORT_NODOT})
370+
set(_Ruby_POSSIBLE_LIB_NAMES
371+
ruby
372+
ruby-static
373+
ruby-${Ruby_VERSION}
374+
ruby${_Ruby_VERSION_NODOT}
375+
ruby${_Ruby_VERSION_NODOT_ZERO_PATCH}
376+
ruby${_Ruby_VERSION_SHORT}
377+
ruby${_Ruby_VERSION_SHORT_NODOT}
378+
)
377379

378380
if (WIN32 OR MSYS)
379381
if (WIN32)
@@ -384,7 +386,7 @@ if (WIN32 OR MSYS)
384386

385387
set(_Ruby_POSSIBLE_VERSION_SUFFIXES "${_Ruby_VERSION_NODOT};${_Ruby_VERSION_NODOT_ZERO_PATCH}")
386388
# Under MSYS CMAKE_SIZEOF_VOID_P is unset so add prefixes for 32 and 64 architectures
387-
set(_Rub_Ruby_POSSIBLE_ARCH_PREFIXES "lib;libx64-;x64-")
389+
set(_Ruby_POSSIBLE_ARCH_PREFIXES "lib;libx64-;x64-")
388390

389391
foreach (_Ruby_RUNTIME ${_Ruby_POSSIBLE_RUNTIMES})
390392
foreach (_Ruby_VERSION_SUFFIX ${_Ruby_POSSIBLE_VERSION_SUFFIXES})
@@ -432,4 +434,4 @@ mark_as_advanced(
432434
Ruby_LIBRARY
433435
Ruby_INCLUDE_DIR
434436
Ruby_CONFIG_INCLUDE_DIR
435-
)
437+
)

0 commit comments

Comments
 (0)