diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f75940893c..1608286950 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -93,7 +93,11 @@ if(BUILD_SHARED_LIBS) set_target_properties(rime PROPERTIES INSTALL_NAME_DIR "@rpath") endif() install(TARGETS rime DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}) - + if(MSVC) + install(FILES $ + DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} + OPTIONAL) + endif() if(BUILD_SEPARATE_LIBS) add_library(rime-dict ${rime_dict_module_src}) target_link_libraries(rime-dict