summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/add_executable
Commit message (Collapse)AuthorAgeFilesLines
* Defer check for sources within a target until generation.Deniz Bahadir2017-10-244-21/+2
| | | | | | | | | | | | | | | The `add_library` and `add_executable` commands can now be called with no source-files and won't generate a warning or error message, as long as source-files will be added later via the `target_sources` command. If during the generation step still no sources are associated with targets created by such calls a useful error message will be generated and generation fails. Targets of type `INTERFACE_LIBRARY`, `UTILITY` or `GLOBAL_TARGET` are excluded from this check because we do not need sources for these target types during generation. Fixes: #16872
* Tests: Exclude bad RunCMake.add_executable case on multi-arch XcodeBrad King2017-10-241-1/+3
| | | | | | | The `NoSourcesButLinkObjects` case would not be expected to work under Xcode with multiple architectures even if the target objects were listed directly as sources. Exclude it. We already exclude similar cases in `RunCMake.add_library`.
* Tests: Add tests for missing sources in add_executable and add_library.Deniz Bahadir2017-09-2012-0/+48