From fc85967dc45a425f384fb80364430e3260833c0f Mon Sep 17 00:00:00 2001 From: Fabian Kosmale Date: Fri, 10 Jul 2020 08:37:48 +0200 Subject: Require bigobj support for typeregistrar files We already had this for mingw,this adds the equivalent for MSVC. Change-Id: I0febe36ca124ed62d5c4f94bdaed46cb55832525 Reviewed-by: Alexandru Croitor --- src/qml/Qt6QmlMacros.cmake | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/qml/Qt6QmlMacros.cmake') diff --git a/src/qml/Qt6QmlMacros.cmake b/src/qml/Qt6QmlMacros.cmake index 4405db694a..8414c65254 100644 --- a/src/qml/Qt6QmlMacros.cmake +++ b/src/qml/Qt6QmlMacros.cmake @@ -640,6 +640,8 @@ function(qt6_qml_type_registration target) set(additional_source_files_properties "") if(MINGW) set(additional_source_files_properties "COMPILE_OPTIONS" "-Wa,-mbig-obj") + elseif(MSVC) + set(additional_source_files_properties "COMPILE_OPTIONS" "/bigobj") endif() set_source_files_properties(${type_registration_cpp_file} PROPERTIES SKIP_AUTOGEN ON -- cgit v1.2.3