aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmake/EigenDetermineVSServicePack.cmake
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-01 16:38:05 +0200
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2013-08-01 16:38:05 +0200
commitcf884a9815c51c27f9172465afb32f3d1d899953 (patch)
treef91ff43421bf825934e65e32827961bd76841189 /cmake/EigenDetermineVSServicePack.cmake
parent222eedf5f345d2ca9f8a65bb71d6d88bf30dbc20 (diff)
Added build name support for VC11 and its service packs.
Diffstat (limited to 'cmake/EigenDetermineVSServicePack.cmake')
-rw-r--r--cmake/EigenDetermineVSServicePack.cmake16
1 files changed, 14 insertions, 2 deletions
diff --git a/cmake/EigenDetermineVSServicePack.cmake b/cmake/EigenDetermineVSServicePack.cmake
index 8e5546a85..a1a7348f6 100644
--- a/cmake/EigenDetermineVSServicePack.cmake
+++ b/cmake/EigenDetermineVSServicePack.cmake
@@ -4,7 +4,6 @@ include(CMakeDetermineVSServicePack)
# _DetermineVSServicePack_FastCheckVersionWithCompiler which lead to errors on some systems.
function(EigenDetermineVSServicePack _pack)
if(NOT DETERMINED_VS_SERVICE_PACK OR NOT ${_pack})
-
if(NOT DETERMINED_VS_SERVICE_PACK)
_DetermineVSServicePack_CheckVersionWithTryCompile(DETERMINED_VS_SERVICE_PACK _cl_version)
if(NOT DETERMINED_VS_SERVICE_PACK)
@@ -13,10 +12,23 @@ function(EigenDetermineVSServicePack _pack)
endif()
if(DETERMINED_VS_SERVICE_PACK)
-
if(_cl_version)
# Call helper function to determine VS version
_DetermineVSServicePackFromCompiler(_sp "${_cl_version}")
+
+ # temporary fix, until CMake catches up
+ if (NOT _sp)
+ if(${_cl_version} VERSION_EQUAL "17.00.50727.1")
+ set(_sp "vc110")
+ elseif(${_cl_version} VERSION_EQUAL "17.00.51106.1")
+ set(_sp "vc110sp1")
+ elseif(${_cl_version} VERSION_EQUAL "17.00.60315.1")
+ set(_sp "vc110sp2")
+ elseif(${_cl_version} VERSION_EQUAL "17.00.60610.1")
+ set(_sp "vc110sp3")
+ endif()
+ endif()
+
if(_sp)
set(${_pack} ${_sp} CACHE INTERNAL
"The Visual Studio Release with Service Pack")