summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-10-18 19:02:53 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-10-18 19:02:53 (GMT)
commit02e99d98512b7c62b8aceee0827fbcf8cb5ea0b5 (patch)
tree11a64b8f94ce951de2da035c2e94d0f948669b13
parentfe09546f8ba0cb8591efdf3588c61c0224d753ef (diff)
parentd2b1ce6af0fbdaf75e07cdb102839e9eaf49c1b9 (diff)
downloadCMake-02e99d98512b7c62b8aceee0827fbcf8cb5ea0b5.zip
CMake-02e99d98512b7c62b8aceee0827fbcf8cb5ea0b5.tar.gz
CMake-02e99d98512b7c62b8aceee0827fbcf8cb5ea0b5.tar.bz2
Merge topic 'FindRubyOnOpenBSD'
d2b1ce6 Find Ruby on OpenBSD when installed from ports (#12507) ba5a8bc Remove trailing whitespace
-rw-r--r--Modules/FindRuby.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake
index 80fb216..ae2ea2e 100644
--- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -137,7 +137,7 @@ IF(RUBY_EXECUTABLE AND NOT RUBY_MAJOR_VERSION)
)
ENDIF(RUBY_EXECUTABLE AND NOT RUBY_MAJOR_VERSION)
-# In case RUBY_EXECUTABLE could not be executed (e.g. cross compiling)
+# In case RUBY_EXECUTABLE could not be executed (e.g. cross compiling)
# try to detect which version we found. This is not too good.
IF(NOT RUBY_VERSION_MAJOR)
# by default assume 1.8.0
@@ -170,9 +170,9 @@ SET(RUBY_INCLUDE_DIRS ${RUBY_INCLUDE_DIR} )
IF( ${Ruby_FIND_VERSION_SHORT_NODOT} GREATER 18 OR ${_RUBY_VERSION_SHORT_NODOT} GREATER 18 OR RUBY_HDR_DIR)
FIND_PATH(RUBY_CONFIG_INCLUDE_DIR
NAMES ruby/config.h config.h
- HINTS
+ HINTS
${RUBY_HDR_DIR}/${RUBY_ARCH}
- ${RUBY_ARCH_DIR}
+ ${RUBY_ARCH_DIR}
)
SET(RUBY_INCLUDE_DIRS ${RUBY_INCLUDE_DIRS} ${RUBY_CONFIG_INCLUDE_DIR} )
@@ -180,7 +180,7 @@ ENDIF( ${Ruby_FIND_VERSION_SHORT_NODOT} GREATER 18 OR ${_RUBY_VERSION_SHORT_NO
# Determine the list of possible names for the ruby library
-SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT})
+SET(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT} ruby${_RUBY_VERSION_SHORT_NODOT})
IF(WIN32)
SET( _RUBY_MSVC_RUNTIME "" )
@@ -202,7 +202,7 @@ IF(WIN32)
LIST(APPEND _RUBY_POSSIBLE_LIB_NAMES
"msvcr${_RUBY_MSVC_RUNTIME}-ruby${_RUBY_NODOT_VERSION}"
- "msvcr${_RUBY_MSVC_RUNTIME}-ruby${_RUBY_NODOT_VERSION}-static"
+ "msvcr${_RUBY_MSVC_RUNTIME}-ruby${_RUBY_NODOT_VERSION}-static"
"msvcrt-ruby${_RUBY_NODOT_VERSION}"
"msvcrt-ruby${_RUBY_NODOT_VERSION}-static" )
ENDIF(WIN32)