COMPMID-765 Merge pull request #325 from lukeiwanski/feature/no_exceptions

ARM_COMPUTE_NO_EXCEPTIONS macro guard

Cherry-picked public merge request from Codeplay

Change-Id: Id819177fcc86a64dc4e82eefe46b2f646619e8c0
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/114924
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Tested-by: Jenkins <bsgcomp@arm.com>
diff --git a/arm_compute/core/CL/OpenCL.h b/arm_compute/core/CL/OpenCL.h
index e389b86..18ba290 100644
--- a/arm_compute/core/CL/OpenCL.h
+++ b/arm_compute/core/CL/OpenCL.h
@@ -28,7 +28,9 @@
 #include <utility>
 
 /* Configure the Khronos C++ wrapper to target OpenCL 1.2: */
+#ifndef ARM_COMPUTE_NO_EXCEPTIONS
 #define CL_HPP_ENABLE_EXCEPTIONS
+#endif // ARM_COMPUTE_NO_EXCEPTIONS
 #define CL_HPP_CL_1_2_DEFAULT_BUILD
 #define CL_HPP_TARGET_OPENCL_VERSION 110
 #define CL_HPP_MINIMUM_OPENCL_VERSION 110