Skip to content

Commit

Permalink
Prevent host Vulkan SDK blocking cross-compilation (apache#7609)
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG authored and Trevor Morris committed May 6, 2021
1 parent 13ee1a1 commit ede3c72
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions cmake/modules/Vulkan.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,11 @@ IF USE_VULKAN)
tvm_option(USE_VULKAN_VALIDATION "Enable Vulkan API validation layers" OFF
IF USE_VULKAN)

if(Vulkan_FOUND)
# always set the includedir
# avoid global retrigger of cmake
include_directories(SYSTEM ${Vulkan_INCLUDE_DIRS})
endif(Vulkan_FOUND)

if(USE_VULKAN)
if(NOT Vulkan_FOUND)
message(FATAL_ERROR "Cannot find Vulkan, USE_VULKAN=" ${USE_VULKAN})
endif()
include_directories(SYSTEM ${Vulkan_INCLUDE_DIRS})
message(STATUS "Build with Vulkan support")
file(GLOB RUNTIME_VULKAN_SRCS src/runtime/vulkan/vulkan.cc)
file(GLOB COMPILER_VULKAN_SRCS src/target/spirv/*.cc)
Expand Down

0 comments on commit ede3c72

Please sign in to comment.