Skip to content

Commit

Permalink
BUILD: Add /bigobj compiler flag to CMakeLists.txt when using MSVC
Browse files Browse the repository at this point in the history
Otherwise, build fails on `files_dragonage.cpp`.
  • Loading branch information
vkremianskii committed Jun 22, 2019
1 parent 3288d27 commit 9114243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ elseif(CMAKE_HOST_UNIX)
elseif(CMAKE_HOST_WIN32)
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:libcmt.lib")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP /bigobj")
endif()
else()
message(STATUS "Unknown platform, maybe not supported")
Expand Down

0 comments on commit 9114243

Please sign in to comment.