diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-09-29 22:07:33 +0200 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-10-06 10:07:02 +0200 |
commit | e6fd92816dcbddcd9c28676815cf134b31291ea9 (patch) | |
tree | 415a1d6759b451c3ce58b5bebb8e0e4185f84f96 /cmake/QtPluginHelpers.cmake | |
parent | 00807f1fe5a20f5c23fbac104212c4a983837db9 (diff) |
CMake: Install PDB debug info for MSVC builds
Supports installing linker generated debug info for shared libraries
and executables, as well as compiler generated debug info for static
libraries.
Works with Ninja Multi-Config as well, with the caveat that the files
are installed optionally, aka the install rule will not error out if
a pdb file is not present. This is necessary, because it's not
possible to create per-config install rules properly.
Fixes: QTBUG-87006
Change-Id: I95e91a6557eb0ee0f882103be54cd38795c349f7
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake/QtPluginHelpers.cmake')
-rw-r--r-- | cmake/QtPluginHelpers.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtPluginHelpers.cmake b/cmake/QtPluginHelpers.cmake index f00fcbd2a6..691735afe4 100644 --- a/cmake/QtPluginHelpers.cmake +++ b/cmake/QtPluginHelpers.cmake @@ -267,6 +267,7 @@ function(qt_internal_add_plugin target) qt_internal_add_linker_version_script(${target}) qt_add_list_file_finalizer(qt_finalize_plugin ${target} "${install_directory}") + qt_internal_install_pdb_files(${target} "${install_directory}") endfunction() function(qt_finalize_plugin target install_directory) |