From 45664726629fd63f159b3c35b25e36b2e5bf0e98 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Sat, 28 Jul 2012 03:24:40 -0300 Subject: [PATCH] Allow to use more than 2GB of memory on win32 --- src/framework/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/src/framework/CMakeLists.txt b/src/framework/CMakeLists.txt index 2f7d6e0f..9b552150 100644 --- a/src/framework/CMakeLists.txt +++ b/src/framework/CMakeLists.txt @@ -211,6 +211,7 @@ if(WIN32) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mthreads") set(framework_DEFINITIONS ${framework_DEFINITIONS} -D_WIN32_WINNT=0x0501) set(framework_DEFINITIONS ${framework_DEFINITIONS} -DBOOST_THREAD_USE_LIB) # fix boost thread linkage + set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -Wl,--large-address-aware") # strip all debug information else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread") set(CMAKE_CXX_LINK_FLAGS "${CMAKE_CXX_LINK_FLAGS} -rdynamic")