cmake_policy

cmake_policy

Content #

cmake_minimum_rquired() will also call another command:

cmake_policy(VERSION)

which will tell CMake what the right policies are to use for this project.

Whenever a backward-incompatible change was introduced, it came with a policy that enabled the new behavior.

Policies can affect every single aspect of CMake, including other important commands like project().

From #