Skip to content

Commit

Permalink
Fix debug build of the gallery on Windows with Fluent style
Browse files Browse the repository at this point in the history
The object file became too big, so
add /bigobj to the command line as
recommended by MSVC itself. Same as commit c6ec1e6.
  • Loading branch information
tronical committed Nov 23, 2022
1 parent f0d7009 commit fcd59fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions examples/gallery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ if (NOT TARGET Slint::Slint)
endif()

add_executable(gallery main.cpp)
if (MSVC)
target_compile_options(gallery PRIVATE /bigobj)
endif()
target_link_libraries(gallery PRIVATE Slint::Slint)
slint_target_sources(gallery gallery.slint)

0 comments on commit fcd59fb

Please sign in to comment.