Skip to content

Commit

Permalink
chore: Fixed the bug that there is no pdb file in the Windows package.
Browse files Browse the repository at this point in the history
Signed-off-by: scottxu <[email protected]>
  • Loading branch information
iamscottxu committed Jan 5, 2022
1 parent 48e0120 commit b876390
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion external/ObsPluginHelpers.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,12 @@ else()
COMPONENT ${target}_Runtime
NAMELINK_COMPONENT ${target}_Development)

if(OS_WINDOWS)
install(FILES
"$<TARGET_PDB_FILE:${PROJECT_NAME}>" DESTINATION "${OBS_PLUGIN_DESTINATION}"
OPTIONAL)
endif()

add_custom_command(TARGET ${target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E copy
"$<TARGET_FILE:${target}>"
Expand All @@ -225,7 +231,7 @@ else()
add_custom_command(TARGET ${target} POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E "$<IF:$<OR:$<CONFIG:Debug>,$<CONFIG:RelWithDebInfo>>,copy,true>"
"$<TARGET_PDB_FILE:${target}>"
"${OBS_OUTPUT_DIR}/$<CONFIG>/${OBS_PLUGIN_DESTINATION}/"
"${OBS_OUTPUT_DIR}/$<CONFIG>/${OBS_PLUGIN_DESTINATION}/$<TARGET_FILE_NAME:${target}>"
VERBATIM)
endif()

Expand Down

0 comments on commit b876390

Please sign in to comment.