diff options
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index d8b526c5..c0885b43 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -265,7 +265,11 @@ function(otr_install_lib target dest) string(TOLOWER "${path}" path_) if(NOT path_ MATCHES "\\.(a|lib)$") if(MSVC AND opentrack_install-debug-info) - otr_pdb_for_dll(pdb-path "${opentrack-hier-debug}") + set(pdb-path "") + otr_pdb_for_dll(pdb-path "${path}") + if(pdb-path) + install(FILES "${pdb-path}" DESTINATION "${opentrack-hier-debug}") + endif() endif() install(FILES "${path}" DESTINATION "${dest}") endif() |