From 5b87f53fe838128b7a0d0cbef8add27f738a9fdb Mon Sep 17 00:00:00 2001 From: Ben Ashbaugh Date: Tue, 11 Apr 2023 09:30:01 -0700 Subject: [PATCH] define CL_NO_EXTENSION_PROTOTYPES (#1325) * define CL_NO_PROTOTYPES When we switch to generated headers this will suppress declaration of extension functions, so we can continue to declare function pointers with the same name. * switch to CL_NO_EXTENSION_PROTOTYPES CL_NO_PROTOTYPES will omit declarations of core OpenCL APIs also. --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 036b4ef4..fc072670 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,6 +17,7 @@ add_definitions(-DCL_USE_DEPRECATED_OPENCL_2_0_APIS=1) add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_2_APIS=1) add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_1_APIS=1) add_definitions(-DCL_USE_DEPRECATED_OPENCL_1_0_APIS=1) +add_definitions(-DCL_NO_EXTENSION_PROTOTYPES) option(USE_CL_EXPERIMENTAL "Use Experimental definitions" OFF) if(USE_CL_EXPERIMENTAL)