From 1d1f29f435cd9854ec6b6075bf3e7dd810d19ec8 Mon Sep 17 00:00:00 2001 From: Martin Koegler Date: Fri, 9 Dec 2016 21:52:34 +0100 Subject: 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`. --- Modules/GetPrerequisites.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/GetPrerequisites.cmake b/Modules/GetPrerequisites.cmake index 5ab9dc5..72775ce 100644 --- a/Modules/GetPrerequisites.cmake +++ b/Modules/GetPrerequisites.cmake @@ -430,8 +430,8 @@ function(gp_resolve_item context item exepath dirs resolved_item_var) if(WIN32 AND NOT UNIX) if(NOT resolved) set(ri "ri-NOTFOUND") - find_program(ri "${item}" PATHS "${exepath};${dirs}" NO_DEFAULT_PATH) - find_program(ri "${item}" PATHS "${exepath};${dirs}") + find_program(ri "${item}" PATHS ${exepath} ${dirs} NO_DEFAULT_PATH) + find_program(ri "${item}" PATHS ${exepath} ${dirs}) if(ri) #message(STATUS "info: 'find_program' in exepath/dirs (${ri})") set(resolved 1) -- cgit v0.12