From f4757f6f00c2cbd0a2568b86843bf86bc961c5ee Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 22 Jul 2023 20:51:42 -0400 Subject: [PATCH] set /LARGEADDRESSAWARE This allows 32bit apps on 64bit Windows to use up to 4GB of memory --- src/main/native/packr/src/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/native/packr/src/CMakeLists.txt b/src/main/native/packr/src/CMakeLists.txt index 4d9ab3c8..d6732ebc 100644 --- a/src/main/native/packr/src/CMakeLists.txt +++ b/src/main/native/packr/src/CMakeLists.txt @@ -6,6 +6,7 @@ endif() add_executable(packr WIN32 packr.cpp) if(WIN32) + set_target_properties(packr PROPERTIES LINK_FLAGS "/LARGEADDRESSAWARE") target_sources(packr PUBLIC win32/packr_win32.cpp win32/packr_win32.manifest) set_property(TARGET packr PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded") # multi-threaded statically-linked runtime elseif(APPLE)