Skip to content

Commit

Permalink
Add /bigobj compile option for MSVC to handle large object files
Browse files Browse the repository at this point in the history
Resolves C1128 error for MNAEigenvalueExtractor.cpp

Signed-off-by: Georgii Tishenin <[email protected]>
  • Loading branch information
georgii-tishenin committed Feb 7, 2024
1 parent 5a3bbe4 commit 94fb53b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ if(MSVC)
add_definitions(-D_SILENCE_ALL_CXX17_DEPRECATION_WARNINGS)
add_definitions(-D_SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING)

add_compile_options(/bigobj) # TODO: [Georgii] remove this after fixing the issue with MNAEigenvalueExtractor.cpp (error C1128)

# Set exception handling for portability
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")

Expand Down

0 comments on commit 94fb53b

Please sign in to comment.