diff options
author | Brad King <brad.king@kitware.com> | 2017-01-12 15:21:24 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2017-01-12 15:21:24 (GMT) |
commit | b4f7ce5c79bf06292deaad8097da7889eddc2886 (patch) | |
tree | 7eb9b162f1bc827c78472b6d30e8fe5bda7cef71 /Modules | |
parent | 5e76ded22c8900a8aea3dbc76f2401f5d832298e (diff) | |
parent | 17a0703d205d26048247e22174a1eda36498d341 (diff) | |
download | CMake-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.cmake | 2 |
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} |