beignet-1.2.1-oclicd_optional_gentoo.patch 701 B

123456789101112131415161718192021222324
  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -223,17 +223,15 @@
  4. # MESSAGE(STATUS "Looking for mesa source code - not found, cl_khr_gl_sharing will be disabled.")
  5. #ENDIF(MESA_SOURCE_FOUND)
  6. +OPTION(OCLICD_COMPAT "OCL ICD compatibility mode" ON)
  7. +IF(OCLICD_COMPAT)
  8. Find_Package(OCLIcd)
  9. IF(OCLIcd_FOUND)
  10. MESSAGE(STATUS "Looking for OCL ICD header file - found")
  11. - configure_file (
  12. - "intel-beignet.icd.in"
  13. - "${ICD_FILE_NAME}"
  14. - )
  15. - install (FILES ${CMAKE_CURRENT_BINARY_DIR}/${ICD_FILE_NAME} DESTINATION /etc/OpenCL/vendors)
  16. ELSE(OCLIcd_FOUND)
  17. MESSAGE(STATUS "Looking for OCL ICD header file - not found")
  18. ENDIF(OCLIcd_FOUND)
  19. +ENDIF(OCLICD_COMPAT)
  20. Find_Package(PythonInterp)