GetPrerequisites: Fix call to find_program for ri tool

`find_program` does not work with `${a};${b}` as a search path.
Use separate arguments to `PATHS`.
This commit is contained in:
Martin Koegler 2016-12-09 21:52:34 +01:00 committed by Brad King
parent 44ddd889af
commit 1d1f29f435

View File

@ -430,8 +430,8 @@ function(gp_resolve_item context item exepath dirs resolved_item_var)
if(WIN32 AND NOT UNIX) if(WIN32 AND NOT UNIX)
if(NOT resolved) if(NOT resolved)
set(ri "ri-NOTFOUND") set(ri "ri-NOTFOUND")
find_program(ri "${item}" PATHS "${exepath};${dirs}" NO_DEFAULT_PATH) find_program(ri "${item}" PATHS ${exepath} ${dirs} NO_DEFAULT_PATH)
find_program(ri "${item}" PATHS "${exepath};${dirs}") find_program(ri "${item}" PATHS ${exepath} ${dirs})
if(ri) if(ri)
#message(STATUS "info: 'find_program' in exepath/dirs (${ri})") #message(STATUS "info: 'find_program' in exepath/dirs (${ri})")
set(resolved 1) set(resolved 1)