nixpkgs-suyu/pkgs/tools/graphics/realesrgan-ncnn-vulkan/cmakelists.patch
Lin Xianyi 40754aafe9 realesrgan-ncnn-vulkan: fix build failure
fixes #289910

Updates build for glslang 14.0.0
2024-03-11 23:42:45 +08:00

15 lines
624 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1e7b71a..e743ab0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -106,9 +106,9 @@ if(USE_SYSTEM_NCNN)
message(STATUS "Using glslang install located at ${GLSLANG_TARGET_DIR}")
find_package(Threads)
+ find_package(SPIRV-Tools-opt REQUIRED)
include("${GLSLANG_TARGET_DIR}/OSDependentTargets.cmake")
- include("${GLSLANG_TARGET_DIR}/OGLCompilerTargets.cmake")
if(EXISTS "${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
# hlsl support can be optional
include("${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")