소스 검색

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.
jp9000 4 년 전
부모
커밋
63bcc54b32
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      cmake/Modules/ObsHelpers.cmake

+ 4 - 0
cmake/Modules/ObsHelpers.cmake

@@ -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)