Skip to content

Commit

Permalink
build: provide rime.pdb when MSVC build (#909)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored Jul 3, 2024
1 parent 58ee93f commit cc332cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 $<TARGET_PDB_FILE:rime>
DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}
OPTIONAL)
endif()
if(BUILD_SEPARATE_LIBS)
add_library(rime-dict ${rime_dict_module_src})
target_link_libraries(rime-dict
Expand Down

0 comments on commit cc332cc

Please sign in to comment.