mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
7d8a22436c
ncnn: Enable vulkan support
14 lines
608 B
Diff
14 lines
608 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 98611276..989350bb 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -260,6 +260,8 @@ if(NCNN_VULKAN)
|
|
include("${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
|
|
endif()
|
|
include("${GLSLANG_TARGET_DIR}/glslangTargets.cmake")
|
|
+ include("${GLSLANG_TARGET_DIR}/SPIRV-Tools/SPIRV-ToolsTarget.cmake")
|
|
+ include("${GLSLANG_TARGET_DIR}/SPIRV-Tools-opt/SPIRV-Tools-optTargets.cmake")
|
|
include("${GLSLANG_TARGET_DIR}/SPIRVTargets.cmake")
|
|
|
|
if (NOT TARGET glslang OR NOT TARGET SPIRV)
|