From af57e95759e3ea602e28688e0fc459d0fba26b3b Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 27 Jan 2019 21:03:07 -0500 Subject: [PATCH] Add /bigobj for nheko MSVC build --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 515e49d8..6fd936b0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -113,6 +113,13 @@ if(NOT MSVC) endif() endif() +if (MSVC) + set( + CMAKE_CXX_FLAGS + "${CMAKE_CXX_FLAGS} /bigobj" + ) +endif() + if(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES)) set(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."