From 50acc03e87cc094fc8c76faed2ffb832520f659a Mon Sep 17 00:00:00 2001 From: Gary Hsu Date: Thu, 5 Sep 2024 12:52:56 -0700 Subject: [PATCH] Fix cmake install for some pdbs (#1417) If the target file name doesn't match the target name, then the old way will fail to get the right pdb name. The new way ensures it will get the right name. --- Install/Install.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Install/Install.cmake b/Install/Install.cmake index ef2ebee8c..aec725682 100644 --- a/Install/Install.cmake +++ b/Install/Install.cmake @@ -11,7 +11,7 @@ function(install_targets) foreach(target IN LISTS ARGN) get_target_property(target_type ${target} TYPE) if(NOT target_type STREQUAL "INTERFACE_LIBRARY") - install(FILES "$/${target}.pdb" DESTINATION lib OPTIONAL) + install(FILES "$/$$.pdb" DESTINATION lib OPTIONAL) endif() endforeach() endfunction()