nixpkgs/pkgs/development/libraries/ncnn/cmakelists.patch
tilcreator 7d8a22436c ncnn: init at 20211208
ncnn: Enable vulkan support
2022-01-24 01:14:39 +01:00

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)