CMakeDetermineVSServicePack
: Includes a public function for assisting users in trying to determine theVisual Studio service pack in use.
Sets the passed in variable to one of the following values or an empty string if unknown.
vc80
vc80sp1
vc90
vc90sp1
vc100
vc100sp1
Usage: ===========================
if(MSVC)
include(CMakeDetermineVSServicePack)
DetermineVSServicePack( my_service_pack )
if( my_service_pack )
message(STATUS "Detected: ${my_service_pack}")
endif()
endif()
===========================