GetPrerequisites: Preserve search path order from caller.
This commit is contained in:
parent
d592fc48cd
commit
e130b9ebaa
|
@ -738,9 +738,11 @@ function(get_prerequisites target prerequisites_var exclude_system recurse exepa
|
||||||
|
|
||||||
if("${gp_tool}" STREQUAL "ldd")
|
if("${gp_tool}" STREQUAL "ldd")
|
||||||
set(old_ld_env "$ENV{LD_LIBRARY_PATH}")
|
set(old_ld_env "$ENV{LD_LIBRARY_PATH}")
|
||||||
foreach(dir ${exepath} ${dirs})
|
set(new_ld_env "${exepath}")
|
||||||
set(ENV{LD_LIBRARY_PATH} "${dir}:$ENV{LD_LIBRARY_PATH}")
|
foreach(dir ${dirs})
|
||||||
|
set(new_ld_env "${new_ld_env}:${dir}")
|
||||||
endforeach()
|
endforeach()
|
||||||
|
set(ENV{LD_LIBRARY_PATH} "${new_ld_env}:$ENV{LD_LIBRARY_PATH}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue