Merge topic 'fix-complex-test-policies'
fb95f820 Tests: Set policies in 'complex' tests
This commit is contained in:
commit
a263cab6c2
@ -14,6 +14,21 @@ if(POLICY CMP0003)
|
|||||||
endif()
|
endif()
|
||||||
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.
|
# Test building without per-rule echo lines in Makefiles.
|
||||||
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
|
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
|
||||||
|
|
||||||
|
@ -14,6 +14,21 @@ if(POLICY CMP0003)
|
|||||||
endif()
|
endif()
|
||||||
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.
|
# Test building without per-rule echo lines in Makefiles.
|
||||||
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
|
set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user