[Pkg-opencl-devel] [beignet] 01/01: use env to set environment variables for GBE_BIN_GENERATER
Andreas Beckmann
anbe at moszumanska.debian.org
Fri Oct 31 22:06:01 UTC 2014
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch for-upstream
in repository beignet.
commit dd8a10b17d567274ea7a8ea0771ad2044aff682e
Author: Andreas Beckmann <anbe at debian.org>
Date: Fri Oct 31 21:45:58 2014 +0100
use env to set environment variables for GBE_BIN_GENERATER
cmake interprets OCL_PCM_PATH=... as a command and will enclose it in
quotes in case it contains characters requiring protection, e.g. ~
a quoted "FOO=bar" is interpreted by /bin/sh as a command (that does not
exist), not a variable setting for a following command
use env to set the variables unambiguously
Signed-off-by: Andreas Beckmann <anbe at debian.org>
---
backend/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt
index 6a31c68..f68ffc5 100644
--- a/backend/CMakeLists.txt
+++ b/backend/CMakeLists.txt
@@ -103,6 +103,6 @@ set(LOCAL_GBE_OBJECT_DIR ${LOCAL_GBE_OBJECT_DIR} PARENT_SCOPE)
set(LOCAL_INTERP_OBJECT_DIR ${LOCAL_INTERP_OBJECT_DIR} PARENT_SCOPE)
set (GBE_BIN_GENERATER
- OCL_PCM_PATH=${LOCAL_PCM_OBJECT_DIR} OCL_PCH_PATH=${LOCAL_PCH_OBJECT_DIR} LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src/gbe_bin_generater
+ env OCL_PCM_PATH=${LOCAL_PCM_OBJECT_DIR} OCL_PCH_PATH=${LOCAL_PCH_OBJECT_DIR} LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src/gbe_bin_generater
PARENT_SCOPE)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/beignet.git
More information about the Pkg-opencl-devel
mailing list