Skip to content

Commit

Permalink
Adding CL_USE_DEPRECATED_OPENCL_1_2_APIS to FindOpenCL.cmake (#190)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kent Knox committed Jul 28, 2016
1 parent 9677ec3 commit ffb1950
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cmake/FindOpenCL.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ endif( )
# If we asked for OpenCL 1.2, and we found a version installed greater than that, pass the 'use deprecated' flag
if( (OpenCL_FIND_VERSION VERSION_LESS "2.0") AND (OpenCL_VERSION VERSION_GREATER OpenCL_FIND_VERSION) )
add_definitions( -DCL_USE_DEPRECATED_OPENCL_2_0_APIS )
add_definitions( -DCL_USE_DEPRECATED_OPENCL_1_2_APIS )

# If we asked for OpenCL 1.1, and we found a version installed greater than that, pass the 'use deprecated' flag
if( (OpenCL_FIND_VERSION VERSION_LESS "1.2") AND (OpenCL_VERSION VERSION_GREATER OpenCL_FIND_VERSION) )
Expand Down

0 comments on commit ffb1950

Please sign in to comment.