summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrej Rode <mail@andrejro.de>2020-06-18 23:39:24 +0200
committerMarcus Müller <marcus@hostalia.de>2020-06-21 14:16:33 +0200
commit9122b2e5b12e133b9ccd00d163b843cc519275b0 (patch)
tree3bc067c261a34f1c2bbb091b1ae5033184797d45
parent7064e2fa2d71e123d3cdc2892a4e11c3e101cace (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.cmake2
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")