summaryrefslogtreecommitdiff
path: root/backend/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Beckmann <anbe@debian.org>2014-10-31 21:45:58 +0100
committerZhigang Gong <zhigang.gong@intel.com>2014-11-03 08:43:05 +0800
commit4caba11ce88b3c1ec80ee119ceaf4bf778b96471 (patch)
treeb342155fd4abc8d51ad7d7485a95dfddda8032e8 /backend/CMakeLists.txt
parentcf1ab1cabb56910e2a858e3d75462723a628a04c (diff)
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@debian.org> Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'backend/CMakeLists.txt')
-rw-r--r--backend/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt
index b02e17f0..bf96baff 100644
--- a/backend/CMakeLists.txt
+++ b/backend/CMakeLists.txt
@@ -44,6 +44,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_BITCODE_LIB_PATH=${LOCAL_OCL_BITCODE_BIN} OCL_HEADER_FILE_DIR=${LOCAL_OCL_HEADER_DIR} OCL_PCH_PATH=${LOCAL_OCL_PCH_OBJECT} LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src/gbe_bin_generater
+ env OCL_BITCODE_LIB_PATH=${LOCAL_OCL_BITCODE_BIN} OCL_HEADER_FILE_DIR=${LOCAL_OCL_HEADER_DIR} OCL_PCH_PATH=${LOCAL_OCL_PCH_OBJECT} LD_LIBRARY_PATH=${CMAKE_CURRENT_BINARY_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/src/gbe_bin_generater
PARENT_SCOPE)