Skip to content
Snippets Groups Projects
Commit 1d1f29f4 authored by e9925248's avatar e9925248 Committed by Brad King
Browse files

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`.
parent 44ddd889
No related branches found
No related tags found
No related merge requests found
...@@ -430,8 +430,8 @@ function(gp_resolve_item context item exepath dirs resolved_item_var) ...@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment