From 4e10abb4c14df2ffc162a0eb017229dfa2bab1fb Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Mon, 12 Oct 2020 15:13:05 +0200 Subject: 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 Reviewed-by: Lars Knoll --- cmake/QtInternalTargets.cmake | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmake') 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) -- cgit v1.2.3