Haibo Huang | d00577c | 2020-02-28 16:35:48 -0800 | [diff] [blame] | 1 | CMP0046 |
| 2 | ------- |
| 3 | |
| 4 | Error on non-existent dependency in add_dependencies. |
| 5 | |
| 6 | CMake 2.8.12 and lower silently ignored non-existent dependencies |
| 7 | listed in the :command:`add_dependencies` command. |
| 8 | |
| 9 | The ``OLD`` behavior for this policy is to silently ignore non-existent |
| 10 | dependencies. The ``NEW`` behavior for this policy is to report an error |
| 11 | if non-existent dependencies are listed in the :command:`add_dependencies` |
| 12 | command. |
| 13 | |
| 14 | This policy was introduced in CMake version 3.0. |
| 15 | CMake version |release| warns when the policy is not set and uses |
| 16 | ``OLD`` behavior. Use the :command:`cmake_policy` command to set it |
| 17 | to ``OLD`` or ``NEW`` explicitly. |
| 18 | |
| 19 | .. include:: DEPRECATED.txt |