Skip to content

Commit

Permalink
Use /bigobj for MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
fintarin committed Apr 28, 2024
1 parent 740d107 commit cfcae68
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 @@ -40,6 +40,10 @@ set_target_properties(${PROJECT_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAK
set_target_properties(${PROJECT_NAME} PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set_target_properties(${PROJECT_NAME} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

if(MSVC)
target_compile_options(${PROJECT_NAME} PRIVATE /bigobj)
endif()

target_include_directories(
${PROJECT_NAME}
PUBLIC include
Expand Down

0 comments on commit cfcae68

Please sign in to comment.