We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f6f01c commit cf6c700Copy full SHA for cf6c700
CMakeLists.txt
@@ -811,7 +811,11 @@ if(NCNN_VULKAN)
811
option(ENABLE_OPT "" OFF)
812
option(ENABLE_PCH "" OFF)
813
option(GLSLANG_TESTS "" OFF)
814
- option(GLSLANG_ENABLE_INSTALL "" ON)
+ if(NCNN_SHARED_LIB)
815
+ option(GLSLANG_ENABLE_INSTALL "" OFF)
816
+ else()
817
+ option(GLSLANG_ENABLE_INSTALL "" ON)
818
+ endif()
819
add_subdirectory(glslang)
820
if(NCNN_SHARED_LIB)
821
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND NOT CMAKE_CXX_COMPILER_FRONTEND_VARIANT MATCHES "MSVC"))
0 commit comments