From 2012e28c55c8090f6641f7b13245d000b5757bb3 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Mon, 29 Nov 2021 17:25:48 +0100 Subject: [PATCH] Fix .dll installation directory on Windows --- src/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 42f152f..2605b47 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -34,7 +34,10 @@ if(MSVC) target_compile_options(backward PUBLIC /wd4267) target_compile_options(backward PUBLIC /wd4996) endif() -install (TARGETS backward DESTINATION ${LIB_INSTALL_DIR}) +install (TARGETS backward + LIBRARY DESTINATION ${LIB_INSTALL_DIR} + ARCHIVE DESTINATION ${LIB_INSTALL_DIR} + RUNTIME DESTINATION ${BIN_INSTALL_DIR}) #=============================================================================== # Used for the installed version.