Suppress warnings from OpenCL include folder.
authorMatthew Bentham <matthew.bentham@arm.com>
Wed, 5 Feb 2020 22:15:26 +0000 (22:15 +0000)
committerJim Flynn <jim.flynn@arm.com>
Mon, 10 Feb 2020 12:35:24 +0000 (12:35 +0000)
Fixes an odd compiler warning with half.hpp when included
from ComputeLibrary/include directory.

Signed-off-by: Matthew Bentham <matthew.bentham@arm.com>
Change-Id: I17d251bb68384c357ffb93ea8e63333564aba659

cmake/GlobalConfig.cmake

index aa2ebc7..8e3b68d 100644 (file)
@@ -279,7 +279,7 @@ if(ARMCOMPUTECL)
     link_libraries(-L${ARMCOMPUTE_BUILD_DIR}/opencl-1.2-stubs)
     set(OPENCL_LIBRARIES OpenCL)
 
-    include_directories(${OPENCL_INCLUDE})
+    include_directories(SYSTEM ${OPENCL_INCLUDE})
 
     # Add preprocessor definition for ARM Compute OpenCL
     add_definitions(-DARMCOMPUTECL_ENABLED)