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
BadTargetName-stderr.txt
BadTargetName.cmake
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
CommandExpandsEmpty.cmake add_custom_{command,target}: Fix crash on empty expanded command 2018-05-14 11:54:27 -04:00
NoArguments-result.txt
NoArguments-stderr.txt
NoArguments.cmake
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
UsesTerminalNoCommand-stderr.txt
UsesTerminalNoCommand.cmake