diff options
author | Martin Koegler <martin.koegler@chello.at> | 2016-12-09 20:52:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:27:21 (GMT) |
commit | 1d1f29f435cd9854ec6b6075bf3e7dd810d19ec8 (patch) | |
tree | 0b34ed150c75bfdb0686a2e2f280a398593c670b /Modules/GetPrerequisites.cmake | |
parent | 44ddd889af8c9934b2c73411e0aea7e323300abd (diff) | |
download | CMake-1d1f29f435cd9854ec6b6075bf3e7dd810d19ec8.zip CMake-1d1f29f435cd9854ec6b6075bf3e7dd810d19ec8.tar.gz CMake-1d1f29f435cd9854ec6b6075bf3e7dd810d19ec8.tar.bz2 |
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`.
Diffstat (limited to 'Modules/GetPrerequisites.cmake')
-rw-r--r-- | Modules/GetPrerequisites.cmake | 4 |
1 files 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) |