Skip to content

Commit

Permalink
cmake: Add bigobj option on MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Jan 9, 2024
1 parent 325e2aa commit ac43b7e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ if(UNIX)
set_target_properties(${PROJECT_NAME} PROPERTIES INSTALL_RPATH "${${PROJECT_NAME}_INSTALL_RPATH}")
endif()

IF(MSVC)
target_compile_options(${PROJECT_NAME} PUBLIC "/bigobj")
ENDIF()

# IDE sources and headers sorting
ADD_SOURCE_GROUP(${LIBRARY_NAME}_SOURCES)
ADD_HEADER_GROUP(PROJECT_HEADERS_FULL_PATH)
Expand Down

0 comments on commit ac43b7e

Please sign in to comment.