summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-04-05 22:06:39 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-04-05 22:06:39 +0200
commit768e2c657caee12856c2eab8a25eac0c442c34ca (patch)
tree59005bc89fe34a78812543a47c6fc7de09fc4960
parent5c292cad0a5ab0b3b73929f302a37a2e6394ef81 (diff)
cmake: fix pdb path install
Issue: #867
-rw-r--r--cmake/opentrack-boilerplate.cmake6
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()