diff options
author | Brad King <brad.king@kitware.com> | 2011-01-03 23:04:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-01-04 12:46:10 (GMT) |
commit | a364daf1fd1fd9079fdc13bec4fe8ea2a56efe04 (patch) | |
tree | bd2e3d1a05d13d67ceb277b449f4d345d61d837a /Source/cmCMakePolicyCommand.h | |
parent | 8e45c1128cd6546a87d7ee32ace91950016f5233 (diff) | |
download | CMake-a364daf1fd1fd9079fdc13bec4fe8ea2a56efe04.zip CMake-a364daf1fd1fd9079fdc13bec4fe8ea2a56efe04.tar.gz CMake-a364daf1fd1fd9079fdc13bec4fe8ea2a56efe04.tar.bz2 |
Allow users to specify defaults for unset policies
Check CMAKE_POLICY_DEFAULT_CMP<NNNN> for a default when policy CMP<NNNN>
would otherwise be left unset. This allows users to set policies on the
command line when the project does not set them. One may do this to
quiet warnings or test whether a project will build with new behavior
without modifying code. There may also be cases when users want to
build an existing project release using new behavior for policies
unknown to the project at the time of the release.
Diffstat (limited to 'Source/cmCMakePolicyCommand.h')
-rw-r--r-- | Source/cmCMakePolicyCommand.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCMakePolicyCommand.h b/Source/cmCMakePolicyCommand.h index b326865..afd3001 100644 --- a/Source/cmCMakePolicyCommand.h +++ b/Source/cmCMakePolicyCommand.h @@ -85,7 +85,8 @@ public: "given version of CMake. " "All policies introduced in the specified version or earlier " "will be set to use NEW behavior. " - "All policies introduced after the specified version will be unset. " + "All policies introduced after the specified version will be unset " + "(unless variable CMAKE_POLICY_DEFAULT_CMP<NNNN> sets a default). " "This effectively requests behavior preferred as of a given CMake " "version and tells newer CMake versions to warn about their new " "policies. " |