Enable /LARGEADDRESSAWARE for 32 bit Windows build.
This commit is contained in:
parent
c29450cbf1
commit
3ba5f8d46a
1 changed files with 6 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue