diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-12 15:13:05 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-10-13 08:38:25 +0200 |
commit | 4e10abb4c14df2ffc162a0eb017229dfa2bab1fb (patch) | |
tree | 85627d7b0ac12fa1e465cd619421114aec60f5bb /cmake | |
parent | 182760e84d19df726418cb79da37636cdb6ff49d (diff) |
Add externConstexpr to MSVC compile options
We want this in order to be able to export constexpr members.
Change-Id: I33ba7964ebee54fe656df983985d8d6fa0b99358
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtInternalTargets.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake index 1485726f0f..91a75983ea 100644 --- a/cmake/QtInternalTargets.cmake +++ b/cmake/QtInternalTargets.cmake @@ -186,6 +186,11 @@ if (MSVC) -Zc:referenceBinding ) endif() + if (MSVC_VERSION GREATER_EQUAL 1919) + target_compile_options(PlatformCommonInternal INTERFACE + -Zc:externConstexpr + ) + endif() target_compile_options(PlatformCommonInternal INTERFACE -Zc:wchar_t) |