Fixing installation directory of '*.dll' files on Windows

This commit is contained in:
Robert Franke 2019-11-29 17:01:32 +01:00 committed by Victor Zverovich
parent 4b120b68ae
commit 159f89e2b8

View File

@ -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 $<TARGET_PDB_FILE:${INSTALL_TARGETS}>
DESTINATION ${FMT_LIB_DIR} OPTIONAL)