mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-05 16:20:10 +08:00
Increased stack size on Windows builds.
This commit is contained in:
parent
82f835edbb
commit
c886b4c374
@ -41,6 +41,14 @@ INCLUDE(GNUInstallDirs)
|
||||
|
||||
IF(MSVC)
|
||||
SET(GLOBAL PROPERTY USE_FOLDERS ON)
|
||||
# By default, CMake sets the stack to 10000000.
|
||||
# Remove this limitation.
|
||||
# See here for more details:
|
||||
# http://www.cmake.org/pipermail/cmake/2009-April/028710.html
|
||||
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /STACK:40000000")
|
||||
SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /STACK:40000000")
|
||||
SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} /STACK:40000000")
|
||||
ENDIF()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user