diff options
author | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-08-21 09:22:23 +0200 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@qt.io> | 2020-08-23 11:05:01 +0200 |
commit | 721812c5d2fe3a62d1321b70cac9609d8d8dd793 (patch) | |
tree | 5b9b424eadf75c1135a5ca15c4173f64c4933dce /cmake/QtInternalTargets.cmake | |
parent | 4306fc019ad88b124cd1af0998a3bcc60856fc74 (diff) |
CMake: Implement configure -gdb-index
Change-Id: Iea0fb99297751b1baf830a416ea5041d0b9a3b63
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtInternalTargets.cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index e59e075d32..fb64b0fbab 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -221,6 +221,10 @@ elseif(QT_FEATURE_use_lld_linker) target_link_options(PlatformCommonInternal INTERFACE "-fuse-ld=lld") endif() +if(QT_FEATURE_enable_gdb_index) + target_link_options(PlatformCommonInternal INTERFACE "-Wl,--gdb-index") +endif() + function(qt_get_implicit_sse2_genex_condition out_var) set(is_shared_lib "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,SHARED_LIBRARY>") set(is_static_lib "$<STREQUAL:$<TARGET_PROPERTY:TYPE>,STATIC_LIBRARY>") |