simde.cmake 609 B

1234567891011121314151617181920212223
  1. # Copyright (C) 2024 Amazon Inc. All rights reserved.
  2. # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  3. # simde is a header only library
  4. set (LIB_SIMDE_DIR ${CMAKE_CURRENT_LIST_DIR})
  5. if (WAMR_BUILD_TARGET MATCHES "AARCH64.*" OR "ARM.*")
  6. add_definitions (-DWASM_ENABLE_SIMDE=1)
  7. endif ()
  8. include_directories(${LIB_SIMDE_DIR} ${LIB_SIMDE_DIR}/simde)
  9. include(FetchContent)
  10. FetchContent_Declare(
  11. simde
  12. GIT_REPOSITORY https://github.com/simd-everywhere/simde
  13. GIT_TAG v0.8.2
  14. )
  15. message("-- Fetching simde ..")
  16. FetchContent_MakeAvailable(simde)
  17. include_directories("${simde_SOURCE_DIR}")