diff options
author | Andrej Rode <mail@andrejro.de> | 2020-06-18 23:39:24 +0200 |
---|---|---|
committer | Marcus Müller <marcus@hostalia.de> | 2020-06-21 14:16:33 +0200 |
commit | 9122b2e5b12e133b9ccd00d163b843cc519275b0 (patch) | |
tree | 3bc067c261a34f1c2bbb091b1ae5033184797d45 | |
parent | 7064e2fa2d71e123d3cdc2892a4e11c3e101cace (diff) |
cmake: Add quotation marks around $PATH in GrTest.cmake
This quotes the SHELL variable in the resulting
shell scripts for execute the tests in the correct
environment and allows paths with spaces.
Thanks to Daniel Estévez for reporting this and providing the
correct fix.
Closes #3560
-rw-r--r-- | cmake/Modules/GrTest.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/GrTest.cmake b/cmake/Modules/GrTest.cmake index 7c8522a2a4..8a98478974 100644 --- a/cmake/Modules/GrTest.cmake +++ b/cmake/Modules/GrTest.cmake @@ -77,7 +77,7 @@ function(GR_ADD_TEST test_name) set(LD_PATH_VAR "DYLD_LIBRARY_PATH") endif() - set(binpath "${bindir}:$PATH") + set(binpath "${bindir}:\"$PATH\"") list(APPEND libpath "$${LD_PATH_VAR}") list(APPEND pypath "$PYTHONPATH") |