summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-22 15:36:26 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-23 12:40:35 (GMT)
commit9ab966a722bbe08615d6d5d4a82fd27aab64d315 (patch)
treebca2bb9727fcb10a3af58780d59a040ecab5aa7a /Modules
parent69b9fde1480eea682937189df7536898422c24f1 (diff)
downloadCMake-9ab966a722bbe08615d6d5d4a82fd27aab64d315.zip
CMake-9ab966a722bbe08615d6d5d4a82fd27aab64d315.tar.gz
CMake-9ab966a722bbe08615d6d5d4a82fd27aab64d315.tar.bz2
FindRuby: Use `MSVC_VERSION` instead of `MSVC##`
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindRuby.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindRuby.cmake b/Modules/FindRuby.cmake
index b0e9b47..a9f8d35 100644
--- a/Modules/FindRuby.cmake
+++ b/Modules/FindRuby.cmake
@@ -207,19 +207,19 @@ set(_RUBY_POSSIBLE_LIB_NAMES ruby ruby-static ruby${_RUBY_VERSION_SHORT} ruby${_
if(WIN32)
set( _RUBY_MSVC_RUNTIME "" )
- if( MSVC60 )
+ if( MSVC_VERSION EQUAL 1200 )
set( _RUBY_MSVC_RUNTIME "60" )
endif()
- if( MSVC70 )
+ if( MSVC_VERSION EQUAL 1300 )
set( _RUBY_MSVC_RUNTIME "70" )
endif()
- if( MSVC71 )
+ if( MSVC_VERSION EQUAL 1310 )
set( _RUBY_MSVC_RUNTIME "71" )
endif()
- if( MSVC80 )
+ if( MSVC_VERSION EQUAL 1400 )
set( _RUBY_MSVC_RUNTIME "80" )
endif()
- if( MSVC90 )
+ if( MSVC_VERSION EQUAL 1500 )
set( _RUBY_MSVC_RUNTIME "90" )
endif()