CMake/Tests/RunCMake/add_executable
Deniz Bahadir 4e7f67383f Defer check for sources within a target until generation.
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
2017-10-24 08:14:47 -04:00
..
CMakeLists.txt Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00
NoSources-result.txt Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00
NoSources-stderr.txt Defer check for sources within a target until generation. 2017-10-24 08:14:47 -04:00
NoSources.cmake Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00
NoSourcesButLinkObjects-result.txt Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00
NoSourcesButLinkObjects-stderr.txt Defer check for sources within a target until generation. 2017-10-24 08:14:47 -04:00
NoSourcesButLinkObjects.cmake Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00
OnlyObjectSources.cmake Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00
RunCMakeTest.cmake Tests: Exclude bad RunCMake.add_executable case on multi-arch Xcode 2017-10-24 08:11:29 -04:00
test.cpp Tests: Add tests for missing sources in add_executable and add_library. 2017-09-20 07:35:09 -04:00