Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
Set the bigobj compilation flag for MSVC (#3765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomasz Dołbniak authored and diyessi committed Oct 11, 2019
1 parent 22e9847 commit 7f5ad24
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 @@ -82,6 +82,10 @@ if ("${CMAKE_GENERATOR}" MATCHES "^Visual Studio.*$")
set(MSVS TRUE)
endif()

if (CMAKE_CXX_COMPILER_ID MATCHES MSVC)
add_definitions(/bigobj)
endif()

# APPLE: Set CMAKE_OSX_SYSROOT if not set already.
if (APPLE)
execute_process(COMMAND sw_vers -productVersion
Expand Down

0 comments on commit 7f5ad24

Please sign in to comment.