CMake: Emit the 'msvc_obj_debug_info' feature only when MSVC is used

In non-MSVC configurations this feature is meaningless.
Restrict it to MSVC.

Pick-to: 6.8
Change-Id: Ib5111e8adf49a862d8ca0f191837d8c28aab6890
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Reviewed-by:  Alexey Edelev <alexey.edelev@qt.io>
This commit is contained in:
Joerg Bornemann 2024-06-10 13:41:27 +02:00
parent 645509935a
commit 433411934c

View File

@ -560,9 +560,9 @@ qt_feature("optimize_full"
qt_feature_config("optimize_full" QMAKE_PRIVATE_CONFIG)
qt_feature("msvc_obj_debug_info"
LABEL "Embed debug info in object files (MSVC)"
CONDITION MSVC
ENABLE QT_USE_CCACHE
AUTODETECT OFF
EMIT_IF MSVC
)
qt_feature_config("msvc_obj_debug_info" QMAKE_PRIVATE_CONFIG)
qt_feature("pkg-config" PUBLIC