Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

arrayfire-newer-boost-compute.patch 1.2 KiB

123456789101112131415161718192021222324252627282930313233
  1. https://sources.debian.org/data/main/a/arrayfire/3.3.2+dfsg1-4/debian/patches/Use-compute-library-from-Boost-1.61.patch
  2. From: Ghislain Antony Vaillant <ghisvail@gmail.com>
  3. Date: Fri, 12 Aug 2016 08:35:19 +0100
  4. Subject: Use compute library from Boost 1.61.
  5. ---
  6. src/backend/opencl/CMakeLists.txt | 12 +++++++-----
  7. 1 file changed, 7 insertions(+), 5 deletions(-)
  8. diff --git a/src/backend/opencl/CMakeLists.txt b/src/backend/opencl/CMakeLists.txt
  9. index ded53bf..d7e3628 100644
  10. --- a/src/backend/opencl/CMakeLists.txt
  11. +++ b/src/backend/opencl/CMakeLists.txt
  12. @@ -84,11 +84,13 @@ ADD_DEFINITIONS( -DBOOST_ALL_NO_LIB )
  13. SET(Boost_USE_STATIC_LIBS OFF)
  14. FIND_PACKAGE(Boost 1.48 REQUIRED)
  15. -OPTION(USE_SYSTEM_BOOST_COMPUTE "Use system BoostCompute" OFF)
  16. -IF(USE_SYSTEM_BOOST_COMPUTE)
  17. - FIND_PACKAGE(BoostCompute REQUIRED)
  18. -ELSE()
  19. - INCLUDE("${CMAKE_MODULE_PATH}/build_boost_compute.cmake")
  20. +IF(Boost_VERSION VERSION_LESS "1.61")
  21. + OPTION(USE_SYSTEM_BOOST_COMPUTE "Use system BoostCompute" OFF)
  22. + IF(USE_SYSTEM_BOOST_COMPUTE)
  23. + FIND_PACKAGE(BoostCompute REQUIRED)
  24. + ELSE()
  25. + INCLUDE("${CMAKE_MODULE_PATH}/build_boost_compute.cmake")
  26. + ENDIF()
  27. ENDIF()
  28. SET( cl_kernel_headers