Fixed install for SPIRV, glslang, and hlsl when building shared libs
diff --git a/hlsl/CMakeLists.txt b/hlsl/CMakeLists.txt
index a3b643f..6d1d8e6 100755
--- a/hlsl/CMakeLists.txt
+++ b/hlsl/CMakeLists.txt
@@ -30,6 +30,12 @@
endif(WIN32)
if(ENABLE_GLSLANG_INSTALL)
- install(TARGETS HLSL
- ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ if(BUILD_SHARED_LIBS)
+ install(TARGETS HLSL
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
+ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ else()
+ install(TARGETS HLSL
+ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})
+ endif()
endif(ENABLE_GLSLANG_INSTALL)