Skip to content

Commit 9a3e962

Browse files
authored
do not use CMake defines for ICD loader name and vendor strings (#203)
1 parent 551a74d commit 9a3e962

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,6 @@ target_compile_definitions (OpenCL
153153
OPENCL_ICD_LOADER_VERSION_MAJOR=3
154154
OPENCL_ICD_LOADER_VERSION_MINOR=0
155155
OPENCL_ICD_LOADER_VERSION_REV=5
156-
OPENCL_ICD_LOADER_NAME_STRING="Khronos OpenCL ICD Loader"
157-
OPENCL_ICD_LOADER_VENDOR_STRING="Khronos Group"
158156
$<$<BOOL:${ENABLE_OPENCL_LAYERS}>:CL_ENABLE_LAYERS>
159157
)
160158

loader/icd_version.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
#ifndef _ICD_VERSION_H_
2020
#define _ICD_VERSION_H_
2121

22+
#define OPENCL_ICD_LOADER_NAME_STRING "Khronos OpenCL ICD Loader"
23+
#define OPENCL_ICD_LOADER_VENDOR_STRING "Khronos Group"
24+
2225
#define OPENCL_ICD_LOADER_VAL(_v) #_v
2326
#define OPENCL_ICD_LOADER_TOSTRING(_d) OPENCL_ICD_LOADER_VAL(_d)
2427
#define OPENCL_ICD_LOADER_VERSION_STRING \

0 commit comments

Comments
 (0)