summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-14 15:49:02 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-14 15:54:27 (GMT)
commit6e594916592e5f8f17b387546d79e484ac092b9e (patch)
treee063592913180cd287c58e92ad1795fd734bc74c /Utilities
parentfbe6cd1596bf280edd49aeb8f981f99d7cd8beb3 (diff)
downloadCMake-6e594916592e5f8f17b387546d79e484ac092b9e.zip
CMake-6e594916592e5f8f17b387546d79e484ac092b9e.tar.gz
CMake-6e594916592e5f8f17b387546d79e484ac092b9e.tar.bz2
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
Diffstat (limited to 'Utilities')
0 files changed, 0 insertions, 0 deletions