cmake: Set PDBALTPATH manually

This commit is contained in:
derrod 2023-02-06 14:32:30 +01:00 committed by Ryan Foster
parent d2f0dfa341
commit f06b2ccf55

View file

@ -29,6 +29,9 @@ function(setup_binary_target target)
endif()
if(MSVC)
target_link_options(${target} PRIVATE
/PDBALTPATH:$<TARGET_PDB_FILE_NAME:${target}>)
install(
FILES $<TARGET_PDB_FILE:${target}>
CONFIGURATIONS "RelWithDebInfo" "Debug"
@ -56,6 +59,9 @@ function(setup_plugin_target target)
_setup_plugin_target(${ARGV})
if(MSVC)
target_link_options(${target} PRIVATE
/PDBALTPATH:$<TARGET_PDB_FILE_NAME:${target}>)
install(
FILES $<TARGET_PDB_FILE:${target}>
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:$<TARGET_PDB_FILE_NAME:${target}>)
install(
FILES $<TARGET_PDB_FILE:${target}>
CONFIGURATIONS "RelWithDebInfo" "Debug"