0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 04:42:18 +02:00

cmake: Automatically copy datatarget PDBs

Helps ensure DLLs associated with game capture, virtual camera, and
other such files have their PDBs copied alongside them in any Windows
build, and allows the ability to trace crashes that may occur from
within those files more easily.
This commit is contained in:
jp9000 2021-04-11 16:47:32 -07:00
parent 8c49cc2831
commit 63bcc54b32

View File

@ -562,6 +562,10 @@ function(install_obs_datatarget target datadest)
"$ENV{obsInstallerTempDir}/${OBS_DATA_DESTINATION}/${datadest}/$<TARGET_FILE_NAME:${target}>"
VERBATIM)
endif()
if(MSVC)
obs_debug_copy_helper(${target} "${OBS_OUTPUT_DIR}/$<CONFIGURATION>/data/${datadest}")
endif()
endfunction()
function(install_obs_plugin_with_data target datadir)