File tree Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Expand file tree Collapse file tree 3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ function(add_opencl_layer)
2525 target_include_directories (${OPENCL_LAYER_TARGET} PRIVATE ${OpenCL_INCLUDE_DIR} ${OPENCL_LAYER_INCLUDES} )
2626
2727 target_compile_definitions (${OPENCL_LAYER_TARGET} PRIVATE CL_TARGET_OPENCL_VERSION=${OPENCL_LAYER_VERSION} )
28+ target_compile_definitions (${OPENCL_LAYER_TARGET} PRIVATE CL_ENABLE_BETA_EXTENSIONS)
2829 target_compile_definitions (${OPENCL_LAYER_TARGET} PRIVATE CL_USE_DEPRECATED_OPENCL_1_0_APIS)
2930 target_compile_definitions (${OPENCL_LAYER_TARGET} PRIVATE CL_USE_DEPRECATED_OPENCL_1_1_APIS)
3031 target_compile_definitions (${OPENCL_LAYER_TARGET} PRIVATE CL_USE_DEPRECATED_OPENCL_1_2_APIS)
Original file line number Diff line number Diff line change @@ -26,6 +26,7 @@ function(add_opencl_sample)
2626 target_link_libraries (${OPENCL_SAMPLE_TARGET} ${OpenCL_LIBRARIES} ${OPENCL_SAMPLE_LIBS} )
2727
2828 target_compile_definitions (${OPENCL_SAMPLE_TARGET} PRIVATE CL_TARGET_OPENCL_VERSION=${OPENCL_SAMPLE_VERSION} )
29+ target_compile_definitions (${OPENCL_SAMPLE_TARGET} PRIVATE CL_ENABLE_BETA_EXTENSIONS)
2930 target_compile_definitions (${OPENCL_SAMPLE_TARGET} PRIVATE CL_HPP_TARGET_OPENCL_VERSION=${OPENCL_SAMPLE_VERSION} )
3031 target_compile_definitions (${OPENCL_SAMPLE_TARGET} PRIVATE CL_HPP_MINIMUM_OPENCL_VERSION=${OPENCL_SAMPLE_VERSION} )
3132 if (SAMPLES_ENABLE_EXCEPTIONS)
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ function(add_opencl_tutorial)
2222 target_link_libraries (${OPENCL_TUTORIAL_TARGET} ${OpenCL_LIBRARIES} ${OPENCL_TUTORIAL_LIBS} )
2323
2424 target_compile_definitions (${OPENCL_TUTORIAL_TARGET} PRIVATE CL_TARGET_OPENCL_VERSION=${OPENCL_TUTORIAL_VERSION} )
25+ target_compile_definitions (${OPENCL_TUTORIAL_TARGET} PRIVATE CL_ENABLE_BETA_EXTENSIONS)
2526 target_compile_definitions (${OPENCL_TUTORIAL_TARGET} PRIVATE CL_HPP_TARGET_OPENCL_VERSION=${OPENCL_TUTORIAL_VERSION} )
2627 target_compile_definitions (${OPENCL_TUTORIAL_TARGET} PRIVATE CL_HPP_MINIMUM_OPENCL_VERSION=${OPENCL_TUTORIAL_VERSION} )
2728 if (WIN32 )
You can’t perform that action at this time.
0 commit comments