diff options
author | David Cole <david.cole@kitware.com> | 2010-06-09 22:22:58 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2010-06-09 22:22:58 (GMT) |
commit | cd3d60b8b5ae89b9c352b9ba022ae04ab97ea0e4 (patch) | |
tree | ac4bf8d2ab25373b9f4ffa21823703dcf933aade /Modules/DartConfiguration.tcl.in | |
parent | 86de1d6504737510e2107aa0323ec761d666bfaa (diff) | |
download | CMake-cd3d60b8b5ae89b9c352b9ba022ae04ab97ea0e4.zip CMake-cd3d60b8b5ae89b9c352b9ba022ae04ab97ea0e4.tar.gz CMake-cd3d60b8b5ae89b9c352b9ba022ae04ab97ea0e4.tar.bz2 |
Fix issue #10346. Error if SOURCE_DIR is empty.
See http://public.kitware.com/Bug/view.php?id=10346.
The proposed patch for the issue could not be applied as is
because the SOURCE_DIR always exists for an ExternalProject_Add
call by the time we get to the place to emit the potential error.
The fix is to emit the error only if the source dir is empty.
By which, I mean devoid of files and subdirectories. If
SOURCE_DIR is used by itself, without any DOWNLOAD_COMMAND
or repository info, then it implies that the SOURCE_DIR is ready
to build as-is without need for a download step. Clearly, if it
is empty, then it is not ready to build as is. So complain if
the SOURCE_DIR is empty.
Diffstat (limited to 'Modules/DartConfiguration.tcl.in')
0 files changed, 0 insertions, 0 deletions