diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-07-10 08:37:48 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2020-07-10 16:14:59 +0000 |
commit | fc85967dc45a425f384fb80364430e3260833c0f (patch) | |
tree | 1d46ccf6fefad2e6d8c25d6db735b822dda18771 /src/qml/Qt6QmlMacros.cmake | |
parent | aab3f9e732829692672f9bb3e54a209d9b5d97b1 (diff) |
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 <alexandru.croitor@qt.io>
Diffstat (limited to 'src/qml/Qt6QmlMacros.cmake')
-rw-r--r-- | src/qml/Qt6QmlMacros.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
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 |