Skip to content

Commit

Permalink
add bigobj flag for msvc builds
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni authored Oct 1, 2024
1 parent 605d9c5 commit 5055774
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ if (VCG_HEADER_ONLY)
target_link_libraries(vcglib INTERFACE OpenMP::OpenMP_CXX)
endif()

if (MSVC)
target_compile_options(vcglib INTERFACE "/bigobj")
endif()

#just to show headers in ide
add_custom_target(vcglib_ide SOURCES ${VCG_HEADERS})
else()
Expand Down

0 comments on commit 5055774

Please sign in to comment.