diff options
Diffstat (limited to 'cmake/QtPlatformTargetHelpers.cmake')
-rw-r--r-- | cmake/QtPlatformTargetHelpers.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/QtPlatformTargetHelpers.cmake b/cmake/QtPlatformTargetHelpers.cmake index 36b661741b..270ed3167b 100644 --- a/cmake/QtPlatformTargetHelpers.cmake +++ b/cmake/QtPlatformTargetHelpers.cmake @@ -30,6 +30,9 @@ function(qt_internal_setup_public_platform_target) target_compile_options(Platform INTERFACE "-stdlib=libc++") target_link_options(Platform INTERFACE "-stdlib=libc++") endif() + if (QT_FEATURE_no_extern_direct_access) + target_compile_options(Platform INTERFACE "-mno-direct-extern-access") + endif() qt_set_msvc_cplusplus_options(Platform INTERFACE) |