This commit is contained in:
vrcomputing 2025-05-16 03:36:54 +08:00 committed by GitHub
commit 8cf2c2e5e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 0 deletions

View File

@ -74,3 +74,8 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
DESTINATION
${QSK_INSTALL_LIBS} OPTIONAL)
endif()
get_filename_component(compiler ${CMAKE_CXX_COMPILER} NAME_WE)
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_SYSTEM_NAME STREQUAL "Windows" AND compiler STREQUAL "g++")
set_source_files_properties(QskQml.cpp PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
endif()