Skip to content

Commit

Permalink
Fix cmake install for some pdbs (#1417)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bghgary authored Sep 5, 2024
1 parent 893257a commit 50acc03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Install/Install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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_FILE_DIR:${target}>/${target}.pdb" DESTINATION lib OPTIONAL)
install(FILES "$<TARGET_FILE_DIR:${target}>/$<TARGET_FILE_PREFIX:${target}>$<TARGET_FILE_BASE_NAME:${target}>.pdb" DESTINATION lib OPTIONAL)
endif()
endforeach()
endfunction()
Expand Down

0 comments on commit 50acc03

Please sign in to comment.