From cc332cc553c258ad32de9664bd010fb09ff607cb Mon Sep 17 00:00:00 2001 From: fxliang Date: Wed, 3 Jul 2024 09:20:57 +0800 Subject: [PATCH] build: provide rime.pdb when MSVC build (#909) --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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