From 159f89e2b87a821e01f8761e04da1c7373f29042 Mon Sep 17 00:00:00 2001 From: Robert Franke Date: Fri, 29 Nov 2019 17:01:32 +0100 Subject: [PATCH] Fixing installation directory of '*.dll' files on Windows --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aeb4b14..0a17358f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,7 +252,9 @@ if (FMT_INSTALL) # Install the library and headers. install(TARGETS ${INSTALL_TARGETS} EXPORT ${targets_export_name} - DESTINATION ${FMT_LIB_DIR}) + LIBRARY DESTINATION ${FMT_LIB_DIR} + ARCHIVE DESTINATION ${FMT_LIB_DIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}) install(FILES $ DESTINATION ${FMT_LIB_DIR} OPTIONAL)