diff options
author | David Cole <david.cole@kitware.com> | 2012-11-21 16:23:14 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2012-11-21 16:29:38 (GMT) |
commit | 7ae7d6650344f7a36216af8424abbf0b834688d1 (patch) | |
tree | ece7ac19df2fda8868a9f8eee3682135f0176d44 /Tests/EmptyDepends | |
parent | 078e35defbe6e0ee3b216dd2e83ca85d49920fc3 (diff) | |
download | CMake-7ae7d6650344f7a36216af8424abbf0b834688d1.zip CMake-7ae7d6650344f7a36216af8424abbf0b834688d1.tar.gz CMake-7ae7d6650344f7a36216af8424abbf0b834688d1.tar.bz2 |
NMake: Fix problem with empty DEPENDS args (#13392)
add_custom_command can have empty DEPENDS arguments, which
was triggering invalid makefile generation for the NMake
Makefiles generator. We were mistakenly emitting the build
directory appended with "/" plus the empty string... which
was then translated to a string ending in \" in build.make...
which nmake choked on.
The solution is not to emit any dependency when the input
DEPENDS is the empty string. Return early from GetRealDependency
in this empty input case.
Diffstat (limited to 'Tests/EmptyDepends')
0 files changed, 0 insertions, 0 deletions