cmake: Do not install static libraries in shared build mode.
[platform/upstream/glslang.git] / glslang / OSDependent / Unix / CMakeLists.txt
index ec1eda4..16eb939 100644 (file)
@@ -52,7 +52,7 @@ else()
     target_link_libraries(OSDependent Threads::Threads)
 endif()
 
-if(ENABLE_GLSLANG_INSTALL)
+if(ENABLE_GLSLANG_INSTALL AND NOT BUILD_SHARED_LIBS)
     install(TARGETS OSDependent EXPORT glslang-targets)
 
     # Backward compatibility