CMake/Tests/RunCMake/add_custom_target
Brad King 6e59491659 add_custom_{command,target}: Fix crash on empty expanded command
Our custom command generation logic assumes that all command lines have
at least `argv0`.  In `add_custom_{command,target}` we already check
that at least a `COMMAND` was given, but using `COMMAND_EXPAND_LISTS` in
combination with a generator expression that expands to an empty string
may produce an empty command line.  In this case simply add an empty
string as a command to maintain our internal invariant.

Fixes: #17993
2018-05-14 11:54:27 -04:00
..
BadTargetName-result.txt Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
BadTargetName-stderr.txt Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
BadTargetName.cmake Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
ByproductsNoCommand-result.txt Add an option for explicit BYPRODUCTS of custom commands (#14963) 2014-11-14 16:16:00 -05:00
ByproductsNoCommand-stderr.txt Add an option for explicit BYPRODUCTS of custom commands (#14963) 2014-11-14 16:16:00 -05:00
ByproductsNoCommand.cmake Add an option for explicit BYPRODUCTS of custom commands (#14963) 2014-11-14 16:16:00 -05:00
CMakeLists.txt Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
CommandExpandsEmpty.cmake add_custom_{command,target}: Fix crash on empty expanded command 2018-05-14 11:54:27 -04:00
NoArguments-result.txt Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
NoArguments-stderr.txt Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
NoArguments.cmake Tests: Test add_custom_command and add_custom_target error cases 2014-11-14 11:43:35 -05:00
RunCMakeTest.cmake add_custom_{command,target}: Fix crash on empty expanded command 2018-05-14 11:54:27 -04:00
TargetOrder.cmake Ninja: Fix inter-target order-only dependencies of custom commands 2016-07-20 13:12:24 -04:00
UsesTerminalNoCommand-result.txt Add USES_TERMINAL option for custom commands 2014-11-14 11:55:09 -05:00
UsesTerminalNoCommand-stderr.txt Add USES_TERMINAL option for custom commands 2014-11-14 11:55:09 -05:00
UsesTerminalNoCommand.cmake Add USES_TERMINAL option for custom commands 2014-11-14 11:55:09 -05:00