CMP0196 — CMake 4.1.1 Documentation

# CMP0196

Added in version 4.1.

The `CMakeDetermineVSServicePack` module is removed.

The `CMakeDetermineVSServicePack` module has long been superseded by the `CMAKE_<LANG>_COMPILER_VERSION` variable, and the module has been documented as deprecated since CMake 3.0. CMake 4.1 and above prefer to not provide the module. This policy provides compatibility for projects that have not been ported away from it.

The `OLD` behavior of this policy is for `include(CMakeDetermineVSServicePack)` to load the deprecated module. The `NEW` behavior halts with a fatal error if anything tries to include the module.

This policy was introduced in CMake version 4.1. It may be set by `cmake_policy()` or `cmake_minimum_required()`. If it is not set, CMake warns, and uses `OLD` behavior.

Note

The `OLD` behavior of a policy is `deprecated by definition` and may be removed in a future version of CMake.