summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0040
Commit message (Collapse)AuthorAgeFilesLines
* Deprecate compatibility with CMake versions older than 3.5Brad King2023-02-111-0/+1
| | | | | | | | Issue a deprecation warning on calls to `cmake_minimum_required` or `cmake_policy` that set policies based on versions older than 3.5. Note that the effective policy version includes `...<max>` treatment. Update the check from commit 5845c218d7 (Deprecate compatibility with CMake versions older than 2.8.12, 2020-06-12, v3.19.0-rc1~629^2).
* Add deprecation warnings for policies CMP0054 and belowBrad King2017-11-014-2/+20
| | | | | | The OLD behaviors of all policies are deprecated, but only by documentation. Add an explicit deprecation diagnostic for some policies to encourage projects to port away from setting policies to OLD.
* CMP0040: Clarify policy warning to match documentationBrad King2017-10-261-3/+3
| | | | | | | | | In commit v3.5.0-rc1~8^2~2 (Help: Clarify policy `CMP0040` documentation, 2016-01-28) the documentation was clarified to indicate that the target must be defined in the current directory. Do the same for the text of the policy warning itself. Fixes: #17399
* Tests: Fix RunCMake.CMP0040 custom command syntaxBrad King2016-08-245-5/+5
|
* Revise C++ coding style using clang-formatKitware Robot2016-05-161-1/+1
| | | | | | | | | | | | | Run the `Utilities/Scripts/clang-format.bash` script to update all our C++ code to a new style defined by `.clang-format`. Use `clang-format` version 3.8. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* add_custom_command: Clarify error when TARGET is out of scope (#15681)Brad King2016-01-282-2/+2
| | | | | | | | The add_custom_command(TARGET) signature only works for targets defined in the current directory. Clarify this in the error message when the target exists but was defined elsewhere. Inspired-by: Bartosz Kosiorek <gang65@poczta.onet.pl>
* RunCMake: Remove unneeded files.Stephen Kelly2015-02-093-3/+0
| | | | | The default expectation of RunCMake tests is empty content, so there is no need to specify it.
* Policies: omit warnings about unset policies when they are actually set to NEWNils Gladitz2014-03-311-5/+0
|
* Tests: Simplify and document policy scopes in RunCMake.CMP* testsBrad King2014-03-061-1/+1
| | | | | Drop unnecessary NO_POLICY_SCOPE options. Document why the remaining options are necessary.
* Add policy CMP0040 to disallow custom commands on missing targetsNils Gladitz2013-11-2118-0/+73