diff options
author | Arkady Shapkin <arkady.shapkin@gmail.com> | 2018-03-22 18:50:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-04-04 17:21:16 (GMT) |
commit | 45bf6f6246a72874c880aa3de13ba957abd50ca6 (patch) | |
tree | 5528336b8b7045041ceb211173c5699871b8e1eb /Modules/FindGTK2.cmake | |
parent | 304f493e570a177795575b5297c4b54bf1b3d2ac (diff) | |
download | CMake-45bf6f6246a72874c880aa3de13ba957abd50ca6.zip CMake-45bf6f6246a72874c880aa3de13ba957abd50ca6.tar.gz CMake-45bf6f6246a72874c880aa3de13ba957abd50ca6.tar.bz2 |
Modules: Use MSVC_TOOLSET_VERSION variable to simplify logic
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r-- | Modules/FindGTK2.cmake | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake index 8d0da51..15d1230 100644 --- a/Modules/FindGTK2.cmake +++ b/Modules/FindGTK2.cmake @@ -352,13 +352,9 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version) if(_expand_vc AND MSVC) # Add vc80/vc90/vc100 midfixes - if(MSVC_VERSION EQUAL 1400) - set(_library ${_library}-vc80) - elseif(MSVC_VERSION EQUAL 1500) - set(_library ${_library}-vc90) - elseif(MSVC_VERSION EQUAL 1600) - set(_library ${_library}-vc100) - elseif(MSVC_VERSION EQUAL 1700) + if(MSVC_TOOLSET_VERSION LESS 110) + set(_library ${_library}-vc${MSVC_TOOLSET_VERSION}) + else() # Up to gtkmm-win 2.22.0-2 there are no vc110 libraries but vc100 can be used set(_library ${_library}-vc100) endif() |