summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-12 15:21:24 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-12 15:21:24 (GMT)
commitb4f7ce5c79bf06292deaad8097da7889eddc2886 (patch)
tree7eb9b162f1bc827c78472b6d30e8fe5bda7cef71 /Modules
parent5e76ded22c8900a8aea3dbc76f2401f5d832298e (diff)
parent17a0703d205d26048247e22174a1eda36498d341 (diff)
downloadCMake-b4f7ce5c79bf06292deaad8097da7889eddc2886.zip
CMake-b4f7ce5c79bf06292deaad8097da7889eddc2886.tar.gz
CMake-b4f7ce5c79bf06292deaad8097da7889eddc2886.tar.bz2
Merge topic 'fix_get_prerequisites'
17a0703d GetPrerequisites: Do not fail on files we cannot find
Diffstat (limited to 'Modules')
-rw-r--r--Modules/GetPrerequisites.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake
index 72775ce..d6a78de 100644
--- a/Modules/GetPrerequisites.cmake
+++ b/Modules/GetPrerequisites.cmake
@@ -654,6 +654,8 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
if(NOT EXISTS "${target}")
message("warning: target '${target}' does not exist...")
+ set(${prerequisites_var} "" PARENT_SCOPE)
+ return()
endif()
set(gp_cmd_paths ${gp_cmd_paths}