This is an automated email from the ASF dual-hosted git repository.
tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git
The following commit(s) were added to refs/heads/main by this push:
new 12c3b3d Prevent host Vulkan SDK blocking cross-compilation (#7609)
12c3b3d is described below
commit 12c3b3d096c0bd509199b9ecdd0f36107950cc9e
Author: PENGUINLIONG <[email protected]>
AuthorDate: Tue Mar 9 22:15:59 2021 +0800
Prevent host Vulkan SDK blocking cross-compilation (#7609)
---
cmake/modules/Vulkan.cmake | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/cmake/modules/Vulkan.cmake b/cmake/modules/Vulkan.cmake
index 4df8986..095790f 100644
--- a/cmake/modules/Vulkan.cmake
+++ b/cmake/modules/Vulkan.cmake
@@ -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)