summaryrefslogtreecommitdiffstats
path: root/Modules/FindGTK2.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-03-23 12:44:11 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-03-23 12:44:22 (GMT)
commita1440504ffd18f155404b8bf44466172e9a8054d (patch)
tree5c9e3c86e0b65d42e2c70afeff5b97767625835e /Modules/FindGTK2.cmake
parente978a2e5b135e25d6654570a6ed948bd5b0f33dc (diff)
parent9ab966a722bbe08615d6d5d4a82fd27aab64d315 (diff)
downloadCMake-a1440504ffd18f155404b8bf44466172e9a8054d.zip
CMake-a1440504ffd18f155404b8bf44466172e9a8054d.tar.gz
CMake-a1440504ffd18f155404b8bf44466172e9a8054d.tar.bz2
Merge topic 'avoid-MSVC-per-version-vars'
9ab966a7 FindRuby: Use `MSVC_VERSION` instead of `MSVC##` 69b9fde1 FindGTK2: Use `MSVC_VERSION` instead of `MSVC##` 3fe31822 FindBoost: Avoid mentioning discouraged `MSVC##`` variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !610
Diffstat (limited to 'Modules/FindGTK2.cmake')
-rw-r--r--Modules/FindGTK2.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindGTK2.cmake b/Modules/FindGTK2.cmake
index 2eca5f9..b87b9f3 100644
--- a/Modules/FindGTK2.cmake
+++ b/Modules/FindGTK2.cmake
@@ -105,7 +105,7 @@
# * 14236: Detect gthread library
# Detect pangocairo on windows
# Detect pangocairo with gtk module instead of with gtkmm
-# * 14259: Use vc100 libraries with MSVC11
+# * 14259: Use vc100 libraries with VS 11
# * 14260: Export a GTK2_DEFINITIONS variable to set /vd2 when appropriate
# (i.e. MSVC)
# * Use the optimized/debug syntax for _LIBRARY and _LIBRARIES variables when
@@ -354,13 +354,13 @@ function(_GTK2_FIND_LIBRARY _var _lib _expand_vc _append_version)
if(_expand_vc AND MSVC)
# Add vc80/vc90/vc100 midfixes
- if(MSVC80)
+ if(MSVC_VERSION EQUAL 1400)
set(_library ${_library}-vc80)
- elseif(MSVC90)
+ elseif(MSVC_VERSION EQUAL 1500)
set(_library ${_library}-vc90)
- elseif(MSVC10)
+ elseif(MSVC_VERSION EQUAL 1600)
set(_library ${_library}-vc100)
- elseif(MSVC11)
+ elseif(MSVC_VERSION EQUAL 1700)
# Up to gtkmm-win 2.22.0-2 there are no vc110 libraries but vc100 can be used
set(_library ${_library}-vc100)
endif()