Skip to content

Commit cc332cc

Browse files
authored
build: provide rime.pdb when MSVC build (#909)
1 parent 58ee93f commit cc332cc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CMakeLists.txt

+5-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,11 @@ if(BUILD_SHARED_LIBS)
9393
set_target_properties(rime PROPERTIES INSTALL_NAME_DIR "@rpath")
9494
endif()
9595
install(TARGETS rime DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR})
96-
96+
if(MSVC)
97+
install(FILES $<TARGET_PDB_FILE:rime>
98+
DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
99+
OPTIONAL)
100+
endif()
97101
if(BUILD_SEPARATE_LIBS)
98102
add_library(rime-dict ${rime_dict_module_src})
99103
target_link_libraries(rime-dict

0 commit comments

Comments
 (0)