2021-12-28 16:51:21 +00:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-03-20 03:24:29 +00:00
|
|
|
index 1e7b71a..2ac2826 100644
|
2021-12-28 16:51:21 +00:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-03-20 03:24:29 +00:00
|
|
|
@@ -106,20 +106,13 @@ if(USE_SYSTEM_NCNN)
|
2024-03-08 02:30:12 +00:00
|
|
|
message(STATUS "Using glslang install located at ${GLSLANG_TARGET_DIR}")
|
2024-03-20 03:24:29 +00:00
|
|
|
|
2022-10-19 16:25:32 +00:00
|
|
|
find_package(Threads)
|
2024-03-20 03:24:29 +00:00
|
|
|
+ find_package(glslang REQUIRED)
|
2024-03-08 02:30:12 +00:00
|
|
|
+ find_package(SPIRV-Tools-opt REQUIRED)
|
2024-03-20 03:24:29 +00:00
|
|
|
|
|
|
|
- include("${GLSLANG_TARGET_DIR}/OSDependentTargets.cmake")
|
2024-03-08 02:30:12 +00:00
|
|
|
- include("${GLSLANG_TARGET_DIR}/OGLCompilerTargets.cmake")
|
2022-10-19 16:25:32 +00:00
|
|
|
if(EXISTS "${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
|
2024-03-08 02:30:12 +00:00
|
|
|
# hlsl support can be optional
|
|
|
|
include("${GLSLANG_TARGET_DIR}/HLSLTargets.cmake")
|
2024-03-20 03:24:29 +00:00
|
|
|
endif()
|
|
|
|
- include("${GLSLANG_TARGET_DIR}/glslangTargets.cmake")
|
|
|
|
- include("${GLSLANG_TARGET_DIR}/SPIRVTargets.cmake")
|
|
|
|
-
|
|
|
|
- if (NOT TARGET glslang OR NOT TARGET SPIRV)
|
|
|
|
- message(WARNING "glslang or SPIRV target not found! USE_SYSTEM_NCNN will be turned off.")
|
|
|
|
- set(USE_SYSTEM_NCNN OFF)
|
|
|
|
- endif()
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|