summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0037/RunCMakeTest.cmake
Commit message (Collapse)AuthorAgeFilesLines
* CMP0037: Allow test and package targets when features are not enabledBrad King2017-10-301-0/+16
| | | | | | | When CMake will not generate a test, package, or package_source target, allow projects to create their own targets with these names. Fixes: #16062
* Tests: Add RunCMake.CMP0037 case for WARN on reserved targetsBrad King2017-10-261-0/+1
|
* CMP0037: Extend policy to reserved names and custom targetsNils Gladitz2013-11-191-0/+3
| | | | | | | | Teach add_custom_target to check the policy too. Extend the policy to disallow reserved target names that we use for builtin targets like "all". Extend the RunCMake.CMP0037 test to cover these cases.
* Enable RunCMake.CMP0037 test everywhereBrad King2013-11-111-3/+8
| | | | | | | | | | | Split the test cases covering spaces and colons into separate units. Run the space cases everywhere. Disable the colon cases where they are known to fail. This approach increases platform coverage for the test and makes the known-failure logic as local as possible. No Makefile generator on Windows can generate targets with ':' in their name because the CMakeFiles/<target>.dir directory cannot be created. Skip this part of the test on all Windows Make tools.
* Disallow invalid target names (#13140)Stephen Kelly2013-11-071-0/+5
Exclude Borland and NMake from the CMP0037 test. They do not accept the colon in a target name.