Replace functions deprecated in OpenCL 1.2
[alexxy/gromacs.git] / cmake / gmxManageOpenCL.cmake
index 254ecf16939f25d779f719ec5a708c1d764c4ac5..721defc8dfa6eafb47244c2086272a8df72f5b92 100644 (file)
@@ -52,11 +52,6 @@ else ()
     return()
 endif()
 
-# Prevent warnings when linking against OpenCL > 1.1
-if (OPENCL_VERSION_STRING VERSION_GREATER 1.1)
-    set(OPENCL_DEFINITIONS "-DCL_USE_DEPRECATED_OPENCL_1_1_APIS")
-endif()
-
 # Tell compiler to hide warnings for comments caused by cl_gl_ext.h on Linux
 if (UNIX)
     set(OPENCL_DEFINITIONS ${OPENCL_DEFINITIONS} " -Wno-comment")
@@ -64,9 +59,6 @@ endif()
 
 add_definitions(${OPENCL_DEFINITIONS})
 
-
-#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
-
 include_directories(${OPENCL_INCLUDE_DIRS})
 
 macro(gmx_gpu_setup)