From cda52d533365df2d11c88f62ef41960991533002 Mon Sep 17 00:00:00 2001 From: Matthew Albrecht Date: Thu, 23 May 2019 19:01:57 -0500 Subject: [PATCH] Fixed .dll install on MSVC. --- SPIRV/CMakeLists.txt | 3 ++- glslang/CMakeLists.txt | 3 ++- hlsl/CMakeLists.txt | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/SPIRV/CMakeLists.txt b/SPIRV/CMakeLists.txt index 1997e74c3..594ab1ef4 100644 --- a/SPIRV/CMakeLists.txt +++ b/SPIRV/CMakeLists.txt @@ -86,7 +86,8 @@ if(ENABLE_GLSLANG_INSTALL) endif() install(TARGETS SPIRV ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) else() if (ENABLE_SPVREMAPPER) install(TARGETS SPVRemapper diff --git a/glslang/CMakeLists.txt b/glslang/CMakeLists.txt index 5f51476ba..60169fb73 100644 --- a/glslang/CMakeLists.txt +++ b/glslang/CMakeLists.txt @@ -108,7 +108,8 @@ if(ENABLE_GLSLANG_INSTALL) if(BUILD_SHARED_LIBS) install(TARGETS glslang ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) else() install(TARGETS glslang ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}) diff --git a/hlsl/CMakeLists.txt b/hlsl/CMakeLists.txt index f918d7a13..7436dde69 100644 --- a/hlsl/CMakeLists.txt +++ b/hlsl/CMakeLists.txt @@ -35,7 +35,8 @@ if(ENABLE_GLSLANG_INSTALL) if(BUILD_SHARED_LIBS) install(TARGETS HLSL ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}) + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) else() install(TARGETS HLSL ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR})