Fixed install for SPIRV, glslang, and hlsl when building shared libs

This commit is contained in:
Matthew Albrecht
2018-04-26 09:04:25 -05:00
parent 46e07313f9
commit 1199cf92f7
4 changed files with 29 additions and 6 deletions

View File

@@ -30,6 +30,12 @@ if(WIN32)
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)