diff --git a/Modules/CMakeDetermineVSServicePack.cmake b/Modules/CMakeDetermineVSServicePack.cmake index 4706634d30..2799608805 100644 --- a/Modules/CMakeDetermineVSServicePack.cmake +++ b/Modules/CMakeDetermineVSServicePack.cmake @@ -11,21 +11,32 @@ CMakeDetermineVSServicePack been superseded by the :variable:`CMAKE__COMPILER_VERSION` variable that contains the compiler version number. -This module provides a function to determine the installed Visual Studio service -pack version for Visual Studio 2012 and earlier. +This module provides a command to determine the installed Visual Studio +service pack version for Visual Studio 2012 and earlier. + +Load this module in a CMake project with: + +.. code-block:: cmake + + include(CMakeDetermineVSServicePack) + +Commands +^^^^^^^^ + +This module provides the following command: .. command:: DetermineVSServicePack + Determines the Visual Studio service pack version of the ``cl`` compiler + in use: + .. code-block:: cmake - DetermineVSServicePack() + DetermineVSServicePack() - Determines the Visual Studio service pack version of the ``cl`` compiler in - use and stores the result in the specified internal cache variable - ````. - - The ```` variable will be set to one of the following values or an - empty string if the service pack cannot be determined: + The result is stored in the specified internal cache variable ````, + which is set to one of the following values, or to an empty string if the + service pack cannot be determined: * ``vc80``, ``vc80sp1`` * ``vc90``, ``vc90sp1``