diff options
Diffstat (limited to 'CMake/FindOCLIcd.cmake')
-rw-r--r-- | CMake/FindOCLIcd.cmake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/CMake/FindOCLIcd.cmake b/CMake/FindOCLIcd.cmake new file mode 100644 index 00000000..076f00e5 --- /dev/null +++ b/CMake/FindOCLIcd.cmake @@ -0,0 +1,23 @@ +# +# Try to find ocl_icd library and include path. +# Once done this will define +# +# OCLIcd_FOUND +# OCLIcd_INCLUDE_PATH +# + +FIND_PATH(OCLIcd_INCLUDE_PATH ocl_icd.h + ~/include/ + /usr/include/ + /usr/local/include/ + /sw/include/ + /opt/local/include/ + DOC "The directory where ocl_icd.h resides") + +IF(OCLIcd_INCLUDE_PATH) + SET(OCLIcd_FOUND 1 CACHE STRING "Set to 1 if OCLIcd is found, 0 otherwise") +ELSE(OCLIcd_INCLUDE_PATH) + SET(OCLIcd_FOUND 0 CACHE STRING "Set to 1 if OCLIcd is found, 0 otherwise") +ENDIF(OCLIcd_INCLUDE_PATH) + +MARK_AS_ADVANCED(OCLIcd_FOUND) |