summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-05-19 14:41:24 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-05-19 14:41:24 (GMT)
commit43a456e1351fc6c2aca088a55855b7f7c501c100 (patch)
tree69fb02e4605b19daaf2134d45df81f47ce897227 /Modules
parent5a9efbfc4bb78a12677247a5ced53141a3c34ba4 (diff)
parentbdca68388bd57f8302d3c1d83d691034b7ffa70c (diff)
downloadCMake-43a456e1351fc6c2aca088a55855b7f7c501c100.zip
CMake-43a456e1351fc6c2aca088a55855b7f7c501c100.tar.gz
CMake-43a456e1351fc6c2aca088a55855b7f7c501c100.tar.bz2
Merge topic 'ExternalProject-UPDATE_COMMAND-always'
bdca6838 ExternalProject: Always run update step with non-empty UPDATE_COMMAND
Diffstat (limited to 'Modules')
-rw-r--r--Modules/ExternalProject.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 7dad6e5..ec846b9 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -2030,6 +2030,9 @@ function(_ep_add_update_command name)
if(cmd_set)
set(work_dir ${source_dir})
+ if(NOT "x${cmd}" STREQUAL "x")
+ set(always 1)
+ endif()
elseif(cvs_repository)
if(NOT CVS_EXECUTABLE)
message(FATAL_ERROR "error: could not find cvs for update of ${name}")