summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-22 15:28:25 (GMT)
committerBrad King <brad.king@kitware.com>2017-03-22 15:28:25 (GMT)
commit4fbae41f889a53903fd5f625ee378b333e8a75fc (patch)
tree0cbc90e7a55c970373b77627c5e40603090dc740 /Modules
parent352b195f8769c5e4c884c1f9d0ba6d747d533547 (diff)
parent8f207df14de3b8141c37b8b34baae29ebda248b3 (diff)
downloadCMake-4fbae41f889a53903fd5f625ee378b333e8a75fc.zip
CMake-4fbae41f889a53903fd5f625ee378b333e8a75fc.tar.gz
CMake-4fbae41f889a53903fd5f625ee378b333e8a75fc.tar.bz2
Merge branch 'FindwxWidgets-vs-2017' into release
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindwxWidgets.cmake12
1 files changed, 7 insertions, 5 deletions
diff --git a/Modules/FindwxWidgets.cmake b/Modules/FindwxWidgets.cmake
index 77091f4..d30d35f 100644
--- a/Modules/FindwxWidgets.cmake
+++ b/Modules/FindwxWidgets.cmake
@@ -498,15 +498,17 @@ if(wxWidgets_FIND_STYLE STREQUAL "win32")
set(_WX_TOOL gcc)
elseif(MSVC)
set(_WX_TOOL vc)
- if(MSVC14)
+ if(MSVC_VERSION EQUAL 1910)
+ set(_WX_TOOLVER 141)
+ elseif(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)