From f06b2ccf559a7b992dacdb247c193801e674d248 Mon Sep 17 00:00:00 2001 From: derrod Date: Mon, 6 Feb 2023 14:32:30 +0100 Subject: [PATCH] cmake: Set PDBALTPATH manually --- cmake/Modules/ObsHelpers_Windows.cmake | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/cmake/Modules/ObsHelpers_Windows.cmake b/cmake/Modules/ObsHelpers_Windows.cmake index 15836161d..d65622fa3 100644 --- a/cmake/Modules/ObsHelpers_Windows.cmake +++ b/cmake/Modules/ObsHelpers_Windows.cmake @@ -29,6 +29,9 @@ function(setup_binary_target target) endif() if(MSVC) + target_link_options(${target} PRIVATE + /PDBALTPATH:$) + install( FILES $ CONFIGURATIONS "RelWithDebInfo" "Debug" @@ -56,6 +59,9 @@ function(setup_plugin_target target) _setup_plugin_target(${ARGV}) if(MSVC) + target_link_options(${target} PRIVATE + /PDBALTPATH:$) + install( FILES $ CONFIGURATIONS "RelWithDebInfo" "Debug" @@ -97,6 +103,9 @@ function(setup_script_plugin_target target) _setup_script_plugin_target(${ARGV}) if(MSVC) + target_link_options(${target} PRIVATE + /PDBALTPATH:$) + install( FILES $ CONFIGURATIONS "RelWithDebInfo" "Debug"