@@ -306,7 +306,7 @@ if (Ruby_EXECUTABLE AND NOT Ruby_EXECUTABLE STREQUAL "${_Ruby_EXECUTABLE_LAST_QU
306
306
Ruby_VERSION_MAJOR
307
307
Ruby_VERSION_MINOR
308
308
Ruby_VERSION_PATCH
309
- )
309
+ )
310
310
endif ()
311
311
312
312
# In case Ruby_EXECUTABLE could not be executed (e.g. cross compiling)
@@ -349,7 +349,7 @@ find_path(Ruby_INCLUDE_DIR
349
349
${Ruby_HDR_DIR}
350
350
${Ruby_ARCH_DIR}
351
351
/usr/lib/ruby/${_Ruby_VERSION_SHORT} /i586-linux-gnu/
352
- )
352
+ )
353
353
354
354
set (Ruby_INCLUDE_DIRS ${Ruby_INCLUDE_DIR} )
355
355
@@ -361,19 +361,21 @@ if (Ruby_FIND_VERSION VERSION_GREATER_EQUAL "1.9" OR Ruby_VERSION VERSION_GREATE
361
361
${Ruby_HDR_DIR} /${Ruby_ARCH}
362
362
${Ruby_ARCH_DIR}
363
363
${Ruby_ARCHHDR_DIR}
364
- )
364
+ )
365
365
366
366
set (Ruby_INCLUDE_DIRS ${Ruby_INCLUDE_DIRS} ${Ruby_CONFIG_INCLUDE_DIR} )
367
367
endif ()
368
368
369
369
# 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
+ )
377
379
378
380
if (WIN32 OR MSYS)
379
381
if (WIN32 )
@@ -384,7 +386,7 @@ if (WIN32 OR MSYS)
384
386
385
387
set (_Ruby_POSSIBLE_VERSION_SUFFIXES "${_Ruby_VERSION_NODOT} ;${_Ruby_VERSION_NODOT_ZERO_PATCH} " )
386
388
# 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-" )
388
390
389
391
foreach (_Ruby_RUNTIME ${_Ruby_POSSIBLE_RUNTIMES} )
390
392
foreach (_Ruby_VERSION_SUFFIX ${_Ruby_POSSIBLE_VERSION_SUFFIXES} )
@@ -432,4 +434,4 @@ mark_as_advanced(
432
434
Ruby_LIBRARY
433
435
Ruby_INCLUDE_DIR
434
436
Ruby_CONFIG_INCLUDE_DIR
435
- )
437
+ )
0 commit comments