summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-07-02 17:22:30 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-07-10 19:04:31 (GMT)
commitb2634b6aa3a0203e3a97060cf9e3206245a85080 (patch)
tree18ef0434ff6e939217f81c6bd2eed39549e73b65 /Modules/ExternalProject.cmake
parent012c9863096612971f3b8d227a5b372be3281ca4 (diff)
downloadCMake-b2634b6aa3a0203e3a97060cf9e3206245a85080.zip
CMake-b2634b6aa3a0203e3a97060cf9e3206245a85080.tar.gz
CMake-b2634b6aa3a0203e3a97060cf9e3206245a85080.tar.bz2
Detect CMake warnings and errors in build output.
Fix niggly in ExternalProject that would inadvertently create a log file of output when a command was explicitly set to the empty string. Also, increase the default value for showing context around build errors to 10 lines, up from 6. Also add the ability to customize this setting so that users can put it back to 6 or even lower if they want, or show more if they want.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 9b35a95..2faa190 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -780,7 +780,7 @@ function(ExternalProject_Add_Step name step)
# Wrap with log script?
get_property(log TARGET ${name} PROPERTY _EP_${step}_LOG)
- if(log)
+ if(command AND log)
_ep_write_log_script(${name} ${step} command)
endif()