From 3ba5f8d46a9023705a76f5b860514d61cf23893e Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 24 Jun 2021 16:01:49 +0400 Subject: [PATCH] Enable /LARGEADDRESSAWARE for 32 bit Windows build. --- options_win.cmake | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/options_win.cmake b/options_win.cmake index bd43547..a263ff7 100644 --- a/options_win.cmake +++ b/options_win.cmake @@ -41,7 +41,12 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") if (build_win64) target_compile_options(common_options INTERFACE - /bigobj # scheme.cpp has too many sections. + /BIGOBJ # scheme.cpp has too many sections. + ) + else() + target_link_options(common_options + INTERFACE + /LARGEADDRESSAWARE # Allow more than 2 GB in 32 bit application.ß ) endif() elseif (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" OR CMAKE_CXX_COMPILER_ID STREQUAL "Clang")