GetPrerequisites: Do not fail on files we cannot find

Historically we have always warned and skipped missing files.  Since
commit v3.4.0-rc1~264^2~1 (GetPrerequisites: Add error checks for
execute_process() calls, 2015-07-29) we fail instead, but this was not
an intentional part of that change.  Restore the warn-only behavior so
that missing system libraries (e.g. during cross-compiling) do not cause
failure.

Closes: #16523
This commit is contained in:
Martin Koegler
2017-01-10 23:28:47 +01:00
committed by Brad King
parent 914728f8d7
commit 17a0703d20

View File

@@ -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}