summaryrefslogtreecommitdiff
path: root/Modules/FindwxWidgets.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-22 11:05:46 -0400
committerBrad King <brad.king@kitware.com>2017-03-22 11:08:05 -0400
commit73f7d266825f1d301aece1286666beda9297382b (patch)
treee52983e095c8c56d8a1a40494c95a98e3c4993a4 /Modules/FindwxWidgets.cmake
parente1adec32b8325fb731da084e99acd6070f5e39bf (diff)
downloadcmake-73f7d266825f1d301aece1286666beda9297382b.tar.gz
FindwxWidgets: Use `MSVC_VERSION` instead of `MSVC##`
Diffstat (limited to 'Modules/FindwxWidgets.cmake')
-rw-r--r--Modules/FindwxWidgets.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake
index 77091f4326..f1627b645c 100644
--- a/Modules/FindwxWidgets.cmake
+++ b/Modules/FindwxWidgets.cmake
@@ -498,15 +498,15 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
set(_WX_TOOL gcc)
elseif(MSVC)
set(_WX_TOOL vc)
- if(MSVC14)
+ if(MSVC_VERSION EQUAL 1900)
set(_WX_TOOLVER 140)
- elseif(MSVC12)
+ elseif(MSVC_VERSION EQUAL 1800)
set(_WX_TOOLVER 120)
- elseif(MSVC11)
+ elseif(MSVC_VERSION EQUAL 1700)
set(_WX_TOOLVER 110)
- elseif(MSVC10)
+ elseif(MSVC_VERSION EQUAL 1600)
set(_WX_TOOLVER 100)
- elseif(MSVC90)
+ elseif(MSVC_VERSION EQUAL 1500)
set(_WX_TOOLVER 90)
endif()
if(CMAKE_SIZEOF_VOID_P EQUAL 8)