diff options
author | Brad King <brad.king@kitware.com> | 2011-01-11 20:52:07 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-01-11 20:52:07 (GMT) |
commit | d4ed72e3bb4d3ca85750c21eae21a0273207e0dc (patch) | |
tree | 841c29dcb57c18d1a69c91921421d77ea0a5b37c /Tests | |
parent | 4ab987b7ccc62abab700cb02b75460cf2a6f7862 (diff) | |
parent | a364daf1fd1fd9079fdc13bec4fe8ea2a56efe04 (diff) | |
download | CMake-d4ed72e3bb4d3ca85750c21eae21a0273207e0dc.zip CMake-d4ed72e3bb4d3ca85750c21eae21a0273207e0dc.tar.gz CMake-d4ed72e3bb4d3ca85750c21eae21a0273207e0dc.tar.bz2 |
Merge topic 'user-policy-defaults'
a364daf Allow users to specify defaults for unset policies
8e45c11 Fix indentation in cmPolicies::ApplyPolicyVersion()
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/PolicyScope/CMakeLists.txt | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Tests/PolicyScope/CMakeLists.txt b/Tests/PolicyScope/CMakeLists.txt index 89a89ee..e6f2edc 100644 --- a/Tests/PolicyScope/CMakeLists.txt +++ b/Tests/PolicyScope/CMakeLists.txt @@ -82,5 +82,23 @@ cmake_policy(GET CMP0002 cmp) check(CMP0002 "OLD" "${cmp}") #----------------------------------------------------------------------------- +# Test CMAKE_POLICY_DEFAULT_CMP<NNNN> variable. +cmake_policy(PUSH) + set(CMAKE_POLICY_DEFAULT_CMP0010 OLD) # ignored + set(CMAKE_POLICY_DEFAULT_CMP0012 OLD) # honored + set(CMAKE_POLICY_DEFAULT_CMP0013 NEW) # honored + set(CMAKE_POLICY_DEFAULT_CMP0014 "") # noop + cmake_policy(VERSION 2.6.3) + cmake_policy(GET CMP0010 cmp) + check(CMP0010 "NEW" "${cmp}") + cmake_policy(GET CMP0012 cmp) + check(CMP0012 "OLD" "${cmp}") + cmake_policy(GET CMP0013 cmp) + check(CMP0013 "NEW" "${cmp}") + cmake_policy(GET CMP0014 cmp) + check(CMP0014 "" "${cmp}") +cmake_policy(POP) + +#----------------------------------------------------------------------------- # Dummy executable so the project can build and run. add_executable(PolicyScope main.c) |