1# 2# Copyright 2020 The TensorFlow Authors. All Rights Reserved. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# https://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16if(TARGET vulkan_headers OR vulkan_headers_POPULATED) 17 return() 18endif() 19 20include(FetchContent) 21 22OverridableFetchContent_Declare( 23 vulkan_headers 24 GIT_REPOSITORY https://github.com/KhronosGroup/Vulkan-Headers 25 # Sync with tensorflow/third_party/vulkan_headers/workspace.bzl 26 GIT_TAG 32c07c0c5334aea069e518206d75e002ccd85389 27 GIT_PROGRESS TRUE 28 PREFIX "${CMAKE_BINARY_DIR}" 29 SOURCE_DIR "${CMAKE_BINARY_DIR}/vulkan_headers" 30) 31 32OverridableFetchContent_GetProperties(vulkan_headers) 33if(NOT vulkan_headers) 34 OverridableFetchContent_Populate(vulkan_headers) 35endif() 36 37include_directories( 38 AFTER 39 "${vulkan_headers_SOURCE_DIR}/include" 40) 41