Commit fb95f820 authored by Brad King's avatar Brad King

Tests: Set policies in 'complex' tests

These tests cover the OLD behavior of some policies.  Set them to
OLD to avoid warnings in the test output.  Leave a comment that
explains why this is done here but not recommended in general.
parent 23ec3738
......@@ -14,6 +14,21 @@ if(POLICY CMP0003)
endif()
endif()
# It is not recommended to set a policy to OLD, but this test
# covers the OLD behavior of some policies.
foreach(p
CMP0029
CMP0032
CMP0033
CMP0034
CMP0043
CMP0050
)
if(POLICY ${p})
cmake_policy(SET ${p} OLD)
endif()
endforeach()
# Test building without per-rule echo lines in Makefiles.
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
......
......@@ -14,6 +14,21 @@ if(POLICY CMP0003)
endif()
endif()
# It is not recommended to set a policy to OLD, but this test
# covers the OLD behavior of some policies.
foreach(p
CMP0029
CMP0032
CMP0033
CMP0034
CMP0043
CMP0050
)
if(POLICY ${p})
cmake_policy(SET ${p} OLD)
endif()
endforeach()
# Test building without per-rule echo lines in Makefiles.
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment