From 768e2c657caee12856c2eab8a25eac0c442c34ca Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 5 Apr 2019 22:06:39 +0200 Subject: cmake: fix pdb path install Issue: #867 --- cmake/opentrack-boilerplate.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'cmake/opentrack-boilerplate.cmake') 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() -- cgit v1.2.3