find-xsimd.patch 588 B

12345678910111213141516171819202122
  1. diff --git a/CMakeLists.txt b/CMakeLists.txt
  2. index 7d075a7223..6dc88e243a 100644
  3. --- a/CMakeLists.txt
  4. +++ b/CMakeLists.txt
  5. @@ -1052,10 +1052,12 @@ list (APPEND ANDROID_EXTRA_LIBS ${LCMS2_LIBRARIES})
  6. ##
  7. ## Test for xsimd
  8. ##
  9. -find_package(xsimd 8.1.0)
  10. -if(NOT xsimd_FOUND)
  11. - find_package(xsimd 9)
  12. -endif()
  13. +foreach(xsimd_version 8.1.0 9 10)
  14. + if(NOT xsimd_FOUND)
  15. + find_package(xsimd ${xsimd_version})
  16. + endif()
  17. +endforeach()
  18. +
  19. set_package_properties(xsimd PROPERTIES
  20. DESCRIPTION "C++ wrappers for SIMD intrinsics"
  21. URL "https://github.com/xtensor-stack/xsimd"