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/QtToolHelpers.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/QtToolHelpers.cmake')
-rw-r--r-- | cmake/QtToolHelpers.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtToolHelpers.cmake b/cmake/QtToolHelpers.cmake index ac5412461d..5a812a3a45 100644 --- a/cmake/QtToolHelpers.cmake +++ b/cmake/QtToolHelpers.cmake @@ -197,6 +197,7 @@ function(qt_internal_add_tool target_name) if(QT_FEATURE_separate_debug_info AND (UNIX OR MINGW)) qt_enable_separate_debug_info(${target_name} ${INSTALL_BINDIR}) endif() + qt_internal_install_pdb_files(${target_name} "${INSTALL_BINDIR}") endfunction() function(qt_export_tools module_name) |