Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ENH: Isolate policy changes in included scripts | Brad King | 2009-01-22 | 3 | -1/+42 |
| | | | | | | | | Isolation of policy changes inside scripts is important for protecting the including context. This teaches include() and find_package() to imply a cmake_policy(PUSH) and cmake_policy(POP) around the scripts they load, with a NO_POLICY_SCOPE option to disable the behavior. This also creates CMake Policy CMP0011 to provide compatibility. See issue #8192. | ||||
* | ENH: Better policies for functions and macros | Brad King | 2009-01-22 | 2 | -0/+59 |
This teaches functions and macros to use policies recorded at creation time when they are invoked. It restores the policies as a weak policy stack entry so that any policies set by a function escape to its caller as before. |