| # Copyright 2023 The IREE Authors | |
| # | |
| # Licensed under the Apache License v2.0 with LLVM Exceptions. | |
| # See https://llvm.org/LICENSE.txt for license information. | |
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| include(FetchContent) | |
| FetchContent_Declare( | |
| spirv-headers | |
| GIT_REPOSITORY https://github.com/KhronosGroup/SPIRV-Headers.git | |
| GIT_TAG ${IREE_SPIRV_HEADERS_TAG} | |
| ) | |
| set(SPIRV_HEADERS_SKIP_EXAMPLES ON CACHE BOOL "" FORCE) | |
| set(SPIRV_HEADERS_SKIP_INSTALL ON CACHE BOOL "" FORCE) | |
| FetchContent_MakeAvailable(spirv-headers) | |
| FetchContent_GetProperties(spirv-headers SOURCE_DIR SPIRV_HEADERS_SOURCE) |