summaryrefslogtreecommitdiffstats
path: root/Modules/FindRuby.cmake
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-01-05 20:53:02 (GMT)
committerAlex Neundorf <neundorf@kde.org>2012-01-05 20:53:02 (GMT)
commit93c55ec1421a2cf43dbcaf9afd0528c8dda42de5 (patch)
tree879f02129a2f86510f443243ee67a300a4359ddf /Modules/FindRuby.cmake
parenta823d8814922cf2c83420f98bb7f2a2ac1d2f0e3 (diff)
downloadCMake-93c55ec1421a2cf43dbcaf9afd0528c8dda42de5.zip
CMake-93c55ec1421a2cf43dbcaf9afd0528c8dda42de5.tar.gz
CMake-93c55ec1421a2cf43dbcaf9afd0528c8dda42de5.tar.bz2
FindRuby: fix usage of RUBY_VERSION_MAJOR (#12172)
Alex
Diffstat (limited to 'Modules/FindRuby.cmake')
-rw-r--r--Modules/FindRuby.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake
index ae2ea2e..402568b 100644
--- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -60,7 +60,7 @@ ENDIF("${Ruby_FIND_VERSION_SHORT_NODOT}" VERSION_LESS "19")
FIND_PROGRAM(RUBY_EXECUTABLE NAMES ${_RUBY_POSSIBLE_EXECUTABLE_NAMES})
-IF(RUBY_EXECUTABLE AND NOT RUBY_MAJOR_VERSION)
+IF(RUBY_EXECUTABLE AND NOT RUBY_VERSION_MAJOR)
# query the ruby version
EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e "print Config::CONFIG['MAJOR']"
OUTPUT_VARIABLE RUBY_VERSION_MAJOR)
@@ -135,7 +135,7 @@ IF(RUBY_EXECUTABLE AND NOT RUBY_MAJOR_VERSION)
RUBY_VERSION_MINOR
RUBY_VERSION_PATCH
)
-ENDIF(RUBY_EXECUTABLE AND NOT RUBY_MAJOR_VERSION)
+ENDIF(RUBY_EXECUTABLE AND NOT RUBY_VERSION_MAJOR)
# In case RUBY_EXECUTABLE could not be executed (e.g. cross compiling)
# try to detect which version we found. This is not too good.