diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-05 22:06:39 +0200 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-04-05 22:06:39 +0200 | 
| commit | 768e2c657caee12856c2eab8a25eac0c442c34ca (patch) | |
| tree | 59005bc89fe34a78812543a47c6fc7de09fc4960 | |
| parent | 5c292cad0a5ab0b3b73929f302a37a2e6394ef81 (diff) | |
cmake: fix pdb path install
Issue: #867
| -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() | 
