diff options
author | Brad King <brad.king@kitware.com> | 2018-01-31 15:53:14 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-01-31 15:53:21 (GMT) |
commit | a0c04e71eb2eb4b06c7a4fcfd9be21f9ac6a38ad (patch) | |
tree | c56f2f77e91a32b505db1a28645e7363c4231075 | |
parent | e2db8531f1ff1f0ea798023b58517f64a18c995a (diff) | |
parent | c7cee1a11e1c18b48d026dfae9fc8a9ddcfa238f (diff) | |
download | CMake-a0c04e71eb2eb4b06c7a4fcfd9be21f9ac6a38ad.zip CMake-a0c04e71eb2eb4b06c7a4fcfd9be21f9ac6a38ad.tar.gz CMake-a0c04e71eb2eb4b06c7a4fcfd9be21f9ac6a38ad.tar.bz2 |
Merge topic 'windows-cmake-stack-size'
c7cee1a1 Windows: Increase stack size used by CMake binaries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !1728
-rw-r--r-- | CompileFlags.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/CompileFlags.cmake b/CompileFlags.cmake index 9834b04..32e7005 100644 --- a/CompileFlags.cmake +++ b/CompileFlags.cmake @@ -17,6 +17,10 @@ if(MSVC OR _INTEL_WINDOWS) else() endif() +if(MSVC) + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -stack:10000000") +endif() + #silence duplicate symbol warnings on AIX if(CMAKE_SYSTEM_NAME MATCHES "AIX") if(NOT CMAKE_COMPILER_IS_GNUCXX) |